by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Parametric Design
Introduced first in SolidGeometry 5.4, Creation date: 2023-10-04, Last change: 2025-09-15
See Also: SGbookwedge
SG=SGshieldbase([ddd,rrr])
ddd: | [length widht height tickness]; default is [117 4 60 2] | |
rrr: | [stand extension stand height]; default is [10 4] |
SG: | resulting solid |
https://www.mec.ed.tum.de/fileadmin/w00cbp/mimed/Matlab_Toolboxes/SolidGeometry_5.3.mltbx
This algorithm is a MATLAB function named SGshieldbase that creates a shield base using parametric design principles. It is part of the SolidGeometry library and was introduced in version 5.4. The function takes two input parameters and produces a solid geometry as output.
ddd and rrr using the getfuncparams function, which assigns default values if none are provided.slfit function with the argument 'c'.CPL using the PLsquare function, which generates a square profile based on the dimensions of ddd plus twice the slice thickness.CPLO by buffering the base profile CPL with the thickness ddd(4) and applying radial edges using PLradialEdges.CPLO from the base profile CPL to create a hollow profile.CPLX by buffering the outer profile CPLO with the stand extension rrr(1).SGA from the hollow profile CPL with the height ddd(3) using SGofCPLz.SGB from the extended profile CPLX with the stand height rrr(2).SGB and SGA using SGconcat with the 'ontop' option and a small offset of -0.1.SGfigure and SGplotalpha, and write the geometry to an STL file named 'SGshieldbase' using SGwriteSTL.