SGshieldbase

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

creates a shieldbase



See Also: SGbookwedge

Example Illustration

 missing image of SGshieldbase(ddd,rrr)

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

SG: resulting solid

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

Algorithm Steps

  1. Retrieve the input parameters ddd and rrr using the getfuncparams function, which assigns default values if none are provided.
  2. Calculate the slice thickness using the slfit function with the argument 'c'.
  3. 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.
  4. Generate an outer profile CPLO by buffering the base profile CPL with the thickness ddd(4) and applying radial edges using PLradialEdges.
  5. Subtract the outer profile CPLO from the base profile CPL to create a hollow profile.
  6. Create an extended profile CPLX by buffering the outer profile CPLO with the stand extension rrr(1).
  7. Generate a solid geometry SGA from the hollow profile CPL with the height ddd(3) using SGofCPLz.
  8. Create another solid geometry SGB from the extended profile CPLX with the stand height rrr(2).
  9. Concatenate the two solid geometries SGB and SGA using SGconcat with the 'ontop' option and a small offset of -0.1.
  10. 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