Syntax
SG=SGpost([R,H,Sh])
Input Parameter
Output Parameter
Examples
SGpost([10 20 5.6],'','mattheck')
Copyright 2021-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 function, SGpost, is designed to create a force-optimized post using specific geometric parameters. It is part of the SolidGeometry library and was introduced in version 5.0. Below is a detailed explanation of the algorithm and its parameters.
Input Parameters
- R: This parameter represents the radius. If a single value is provided, it is assumed to be the outer radius, and the inner radius is set to zero. If two values are provided, they represent the outer and inner radii, respectively. If three values are provided, the third value is used as the inner radius.
- H: This parameter represents the height. It is retrieved using the function getfuncparams with a default value of [20 0 0.1]. The first value is the height, the second is unused, and the third is a small offset for the base.
- Sh: This parameter defines the shape of the chamfer. It is retrieved using getfuncparams with a default value of 'circ'.
Algorithm Steps
- Retrieve the radius (R) using getfuncparams. If only one or two values are provided, adjust the array to ensure it has three elements, with the third being the inner radius (Ri).
- Retrieve the height (H) using getfuncparams with a default value of [20 0 0.1].
- Retrieve the shape (Sh) using getfuncparams with a default value of 'circ'.
- Calculate the difference (D) between the outer and inner radii.
- Create a point list (PL) starting with the inner radius and height, followed by the inner radius at the base, and then the chamfered points adjusted by the outer radius.
- Adjust the point list (PL) to account for the height offset by setting the base height to -H(3).
- Generate the solid geometry (SG) by rotating the point list (PL) using the function SGofCPLrot.
- If no output is requested, plot the geometry using SGfigure and SGplotalpha.
Output
- SG: The output is a solid geometry object representing the force-optimized post.
This function is part of a modeling procedure aimed at creating optimized geometric shapes for specific applications.
Algorithm explaination created using ChatGPT on 2025-08-18 23:19. (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