SGdesignPeginHole

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - ENG-Designs
Introduced first in SolidGeometry 5.2, Creation date: 2022-03-31, Last change: 2025-09-15

design subtraction solid and supplement solid for peg in hole connections using fittings



See Also: SGdesignDIN912BushingE , SGdesignPluginFrame

Example Illustration

 missing image of SGdesignPeginHole(CPL,h,sl)

Syntax

[PA,HS]=SGdesignPeginHole([CPL,h,sl])

Input Parameter

CPL: Desired contour;
h: [lp lh]; length peg; length hole; hole per default peg plus slfit('c')
sl: fitting; per default 'c'

Output Parameter

PA: Supplement solid for peg using frame 'C' and 'alignT'
HS: Subtraction solid for hole using frame 'C' and 'alignT'

Examples


[PA,HS]=SGdesignPeginHole('',[5 10],'t');
SGunion(SGbox,PA,'alignT',{'C','F'}), A=ans;
SGsubtract(SGbox,HS,'alignT',{'C','F'}), B=ans;
cla; SGplotalpha(A,'Y'); SGplotalpha(B,'','','',A,'alignT',{'F','F'}); VLFLplotlight(1,0.5);




Copyright 2022-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21