Syntax
SG=SGDIN985(M)
Input Parameter
Output Parameter
SG : | | Solid Geometry including Frames |
Examples
SGDIN985(2.5)
Copyright 2020-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, SGDIN985
, generates a solid geometry model based on the DIN 985 standard. It is part of the Solid Geometry library and was created by Tim Lueth in 2020.
Input Parameters
- M: Diameter metric, a required parameter.
- L: Length, which defaults to a value derived from the DIN 985 table if not provided.
- CPL: A parameter for the circle profile, defaulting to a calculated value if not specified.
- p: An additional parameter, defaulting to an empty string if not specified.
Algorithm Steps
- Retrieve function parameters using
getfuncparams
for M, L, CPL, and p.
- Load the DIN 985 table using
DIN985(0)
.
- Find the corresponding entry in the DIN 985 table for the given diameter M using
DINfindinTab
.
- If L is not specified, set it to the default length from the table.
- If CPL is not specified, calculate it using
PLcircle
with the diameter from the table.
- Create the solid geometry using
SGDIN13
with the parameters M, L, p, and CPL.
- Set transformations for the solid geometry using
SGTset
for 'B' and 'F' frames.
- Assign a stamp name to the solid geometry using
sprintf
.
- If no output is requested, plot the solid geometry using
SGfigure
, SGplotalpha
, and SGTframeplot
.
Output
- SG: The generated solid geometry model.
- TL: The table line from the DIN 985 table corresponding to the input diameter M.
Algorithm explaination created using ChatGPT on 2025-08-19 01:04. (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