SGpost

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Modeling function
Introduced first in SolidGeometry 5.0, Creation date: 2021-01-02, Last change: 2025-08-18

returns a force optimated post



See Also: SGcylinder

Example Illustration

 missing image of SGpost(R,H,Sh)

Syntax

SG=SGpost([R,H,Sh])

Input Parameter

R:
H:
Sh:

Output Parameter

SG: Solid Geometry

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

Algorithm Steps

  1. 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).
  2. Retrieve the height (H) using getfuncparams with a default value of [20 0 0.1].
  3. Retrieve the shape (Sh) using getfuncparams with a default value of 'circ'.
  4. Calculate the difference (D) between the outer and inner radii.
  5. 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.
  6. Adjust the point list (PL) to account for the height offset by setting the base height to -H(3).
  7. Generate the solid geometry (SG) by rotating the point list (PL) using the function SGofCPLrot.
  8. If no output is requested, plot the geometry using SGfigure and SGplotalpha.

Output

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