TofCVL
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 5.0, Creation date: 2020-09-14, Last change: 2025-09-14
returns for curved contours the mean transformation matrix
Description
In some cases, the function TofVL calculates an undesired transformation for curved surfaces, since TofVL is based on the Eigenvalues of the convex hull. TofCVL is based on the edge normals and is required for curved surfaces. In case of planar surfaces, TofCVL will fail and automatically return TofVL as result.
IN SG-LIB 5.0 we have to following concepts:
- (2010) - T3P: T - right hand system from 3 Point. Origin is p1
- (2012) - TofVL: T - Eigenvalues and Center of convexhull of VL
- (2015) - PLofVL: T - ex is the longest distance of mean(VL)
- (2016) - TofPez: T - ey has no x dimension or ex=[0 0 1]
- (2019) - TofVLFL:T - ez is calucated from the face normals, o=mean(VL)
- (2020) - VLeigenvect - same as TofVL but no convex hull and faster
- (2020) - TofCVL: T - ez is calucated from the edge normals, o=mean(VL)
See Also: TofVLFL
, VLeigenvect
, TofVL
, Tof3P
, TofPez
, PLofVL
, VLFL_EXP60
Example Illustration
Syntax
T=TofCVL(CVL,[ez])
Input Parameter
CVL: | | CVL - curved - for planar use TofVL |
ez: | | if not empty ez of result T is forced into direction of ez |
Output Parameter
Examples
TofCVL(CVLofCPLbendsinus(CPLaddauxpoints(CPLsample(37),1),'x',0.5,10)) % Correct to BB correct for surface
TofCVL(CVLofCPLbendsinus(CPLaddauxpoints(CPLsample(37),1),'x',0.5,30)) % Correct to BB correct for surface
TofVL(CVLofCPLbendsinus(CPLaddauxpoints(CPLsample(37),1),'x',0.5,10)) % Correct to BB correct for surface
TofVL(CVLofCPLbendsinus(CPLaddauxpoints(CPLsample(37),1),'x',0.5,30)) % Correct to BB wrong for surface
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
Last html export of this page out of FM database by TL: 2025-09-21