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
See Also: SGdesignDIN912BushingE
, SGdesignPluginFrame
[PA,HS]=SGdesignPeginHole([CPL,h,sl])
CPL: | Desired contour; | |
h: | [lp lh]; length peg; length hole; hole per default peg plus slfit('c') | |
sl: | fitting; per default 'c' |
PA: | Supplement solid for peg using frame 'C' and 'alignT' | |
HS: | Subtraction solid for hole using frame 'C' and 'alignT' |
[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);