by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Parametric Design
Introduced first in SolidGeometry 5.2, Creation date: 2022-04-19, Last change: 2025-09-15
See Also: SGofCPLzplugin
, SGcylinder
, SGofCPLrot
[SG,SGB,SGC,AParts]=SGplugintube([RR,LL,sl,"cap","close"])
RR: | [Ri Wt n] [Inner-Radius wall-thickness edges]; default is [8.0 1.5 0]; Minimal wall size is 1.5mm | |
LL: | [LL LU LO] [length lower-overlap top-overlap]; default is [160 30 30] | |
sl: | slot size to increase | |
"cap": | if used there will be caps to plug-in | |
"close": | if closed (LL(2)==0 || LL(3)==0; floor and/or the top are closed |
SG: | Solid of the tube | |
SGB: | lower cap | |
SGC: | top cap | |
AParts: | Parts-List |
SGplugintube('',[40 20 10],'cap');
SGplugintube('',[40 20 10]);
SGplugintube('',[40 0 0],'close'); % Hollow solid
SGplugintube([15/2 1.5 4],[60 20]); % Square