Syntax
CPL=SGdimensioningFront(SG,[pnt,acc])
Input Parameter
SG : | | Solid geometry |
pnt : | | crossing point |
acc : | | accuracy; default is 0.1 |
Output Parameter
Examples
SGsample(27); SG=ans;
SGdimensioningSide(SG);
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, SGdimensioningFront
, is designed to create a side view dimensioning figure from a given solid geometry (SG). It is part of the SG-Library and was introduced in SolidGeometry version 4.9.
Input Parameters
- SG: This is the solid geometry input, which is the primary data structure the function operates on.
- pnt: This represents the crossing point. If not provided, it defaults to the mean of the vertices in the solid geometry.
- acc: This is the accuracy parameter, with a default value of 0.1. It determines the precision of the dimensioning process.
Output
- CPL: This is the output, representing the CPL of the side-view dimensioning.
Algorithm Steps
- Initialize
ang1
and ang2
to 0. These angles are used for dimensioning but are not modified in this function.
- Retrieve the
pnt
parameter using getfuncparams
. If pnt
is a scalar, convert it to a 3D point by setting its x and y components to 0.
- If
pnt
is not provided, calculate it as the mean of the vertices in the solid geometry (SG.VL
).
- Convert the input solid geometry to a standard format using
SGofSG
.
- Check the number of output arguments (
nargout
).
- If no output is expected, call
SGdimensioning
with the parameters SG
, ang1
, ang2
, pnt
, and acc
. Assign the result to CPL
.
- If an output is expected, directly assign the result of
SGdimensioning
to CPL
.
Algorithm explaination created using ChatGPT on 2025-08-19 00:35. (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