Syntax
SG=SGshieldbase([ddd,rrr])
Input Parameter
ddd : | | [length widht height tickness]; default is [117 4 60 2] |
rrr : | | [stand extension stand height]; default is [10 4] |
Output Parameter
Examples
https://www.mec.ed.tum.de/fileadmin/w00cbp/mimed/Matlab_Toolboxes/SolidGeometry_5.3.mltbx
Copyright 2023-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
Algorithm (Workflow)
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.
Input Parameters
- ddd: An array representing [length, width, height, thickness]. The default value is [117, 4, 60, 2].
- rrr: An array representing [stand extension, stand height]. The default value is [10, 2*ddd(4)].
Algorithm Steps
- Retrieve the input parameters
ddd
and rrr
using the getfuncparams
function, which assigns default values if none are provided.
- Calculate the slice thickness using the
slfit
function with the argument 'c'.
- Create a base profile
CPL
using the PLsquare
function, which generates a square profile based on the dimensions of ddd
plus twice the slice thickness.
- Generate an outer profile
CPLO
by buffering the base profile CPL
with the thickness ddd(4)
and applying radial edges using PLradialEdges
.
- Subtract the outer profile
CPLO
from the base profile CPL
to create a hollow profile.
- Create an extended profile
CPLX
by buffering the outer profile CPLO
with the stand extension rrr(1)
.
- Generate a solid geometry
SGA
from the hollow profile CPL
with the height ddd(3)
using SGofCPLz
.
- Create another solid geometry
SGB
from the extended profile CPLX
with the stand height rrr(2)
.
- Concatenate the two solid geometries
SGB
and SGA
using SGconcat
with the 'ontop' option and a small offset of -0.1.
- If no output is requested, plot the resulting geometry using
SGfigure
and SGplotalpha
, and write the geometry to an STL file named 'SGshieldbase' using SGwriteSTL
.
Algorithm explaination created using ChatGPT on 2025-08-18 23:43. (Please note: No guarantee for the correctness of this explanation)
Last html export of this page out of FM database by TL: 2025-09-21