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
See Also: SGTdimensioning
, viewdimensioning
, PLdimensioning
, CVLdimclassifier
, SGdimensioning4
, SGdimensioningSide
, SGdimensioningFront
CPL=SGdimensioningTop(SG,[pnt,acc])
SG: | Solid geometry | |
pnt: | crossing point | |
acc: | accuracy; default is 0.1 |
CPL: | CPL of Topview |
SGsample(27); SG=ans;
SGdimensioningTop(SG);
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:
ang1 and ang2, to 0 and 90 degrees, respectively. These angles are used for the top view dimensioning.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.pnt is a scalar, convert it to a 3D point by setting it to [0, 0, pnt].pnt is empty, calculate the mean of the vertices of the solid geometry SG and assign it to pnt.SGofSG with SG as an argument to process the solid geometry.nargout:nargout is 0, call SGdimensioning with SG, ang1, ang2, an empty string, and acc as arguments. Assign the result to CPL.nargout is not 0, call SGdimensioning with SG, ang1, ang2, pnt, and acc as arguments. Assign the result to CPL.The function returns CPL, which is the dimensioning of the top view of the solid geometry.