CPLofSGThull

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 4.7, Creation date: 2019-07-22, Last change: 2025-09-14

Creates the CPLofSGhull after an transformation relative to a frame



See Also: CPLofSGhull

Example Illustration

 missing image of CPLofSGThull(SG,T)

Syntax

[CPL,T,CVL]=CPLofSGThull(SG,[T])

Input Parameter

SG: Solid Geometry
T: Frame char or HT matrix

Output Parameter

CPL: CPL of contour (XY after transformation)
T: HT matrix of transformation
CVL: CVL of the spatial transformed CPL




Copyright 2019-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, CPLofSGThull, is designed to create a Contour Polyline (CPL) of a Solid Geometry (SG) after applying a transformation relative to a specified frame. The function is part of the SolidGeometry library and was introduced in version 4.7.

Input Parameters

Output Results

Algorithm Steps

  1. The function begins by determining the transformation matrix T using getfuncparams. If T is not provided, it defaults to the identity matrix.
  2. If T is a character, it is assumed to be a frame specifier, and the actual transformation matrix is retrieved using SGTget. Otherwise, T is used as is.
  3. The Solid Geometry SG is transformed using the inverse of T with the function SGtransT, resulting in SGF.
  4. The function CPLofSGhull is called to compute the CPL of the transformed geometry SGF.
  5. The function VLaddz is used to add a zero z-coordinate to the CPL, and then VLtransT applies the transformation T to obtain the CVL.
  6. If no output arguments are specified, the function proceeds to visualize the results:
Algorithm explaination created using ChatGPT on 2025-08-18 23:59. (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