by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Geometric Queries
Introduced first in SolidGeometry 4.5, Creation date: 2019-02-04, Last change: 2025-09-14
See Also: BBofVL
, BBofSG
, BBofCPS
, BBofCPL
, BBofPS
, BBofSGcutT
, BBgrow
, BBaddtolerance
bb=BBofPose(PS)
PS: | Closed Polygon Line |
bb: | bb [xmin xmax ymin ymax] |
BBofPose(Posesample(7)); Poseplot(Posesample(7));
This function, BBofPose, calculates the bounding box of a given pose. The function is part of the SG-Library and was introduced in SolidGeometry 4.5. It is designed to work with closed polygon lines (CPL).
CPLE and A.[xmin xmax ymin ymax].CPLE exists in the input structure PS. If it does not exist or is empty, initialize it with a square polygon using the function PLsquare with parameters (1, 0.5).np by checking the number of rows in PS.A.T for the pose using the function TofPose.CPL to store transformed polygon lines. The size is determined by the number of points in PS.CPLE plus one, and the number of poses.T(:,:,i) and apply it to PS.CPLE using the function PLtransT. Store the result in CPL.CPLB exists in PS, append it to CPL.bb using the function BBofCPL with CPL and any additional parameters from varargin.SGfigure, CPLplot, and CPLofBB.