SGdimensioningTop

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - ENG-Dimensioning
Introduced first in SolidGeometry 4.9, Creation date: 2020-07-18, Last change: 2025-09-14

Creates a Front View Dimensioning Figure



See Also: SGTdimensioning , viewdimensioning , PLdimensioning , CVLdimclassifier , SGdimensioning4 , SGdimensioningSide , SGdimensioningFront

Example Illustration

 missing image of SGdimensioningTop(SG,pnt,acc)

Syntax

CPL=SGdimensioningTop(SG,[pnt,acc])

Input Parameter

SG: Solid geometry
pnt: crossing point
acc: accuracy; default is 0.1

Output Parameter

CPL: CPL of Topview

Examples


SGsample(27); SG=ans;
SGdimensioningTop(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)

The function SGdimensioningTop is designed to create a top view dimensioning figure for a given solid geometry. Below is a detailed explanation of the algorithm and its parameters:

Input Parameters

Algorithm Steps

  1. Initialize two angles, ang1 and ang2, to 0 and 90 degrees, respectively. These angles are used for the top view dimensioning.
  2. Retrieve the pnt and acc parameters using the getfuncparams function. This function checks if the parameters are provided in the varargin and assigns default values if not.
  3. If pnt is a scalar, convert it to a 3D point by setting it to [0, 0, pnt].
  4. If pnt is empty, calculate the mean of the vertices of the solid geometry SG and assign it to pnt.
  5. Call the function SGofSG with SG as an argument to process the solid geometry.
  6. Check the number of output arguments using nargout:

Output

The function returns CPL, which is the dimensioning of the top view of the solid geometry.

Algorithm explaination created using ChatGPT on 2025-08-19 00:37. (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