isCVP
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 5.1, Creation date: 2021-03-31, Last change: 2025-09-15
returns wether a sequence of vertices is a contour vertex path
Description
The function checks whether a 3D point sequence can be used as a path. This requires three conditions:
1st: ONE contour without nan separation
2nd: There is an OPEN contour; the start and end points are separate
3rd: There are no KINKS greater than 45 degrees, as this will lead to ambiguities in the Euler angles
See Also: CVLpathwarning
, VLof2TR
Example Illustration
Syntax
x=isCVP(VL)
Input Parameter
VL: | | Vertex list, that should represent a contour path in 3D |
Output Parameter
x: | | true if all conditions are fullfilled |
Examples
TLofn([1 6 6]); TL=ans; VLof2TR(TL(:,:,1),TL(:,:,2),10); VL=ans; isCVP((VL))
TLofn([1 6 6]);TL=ans; VLof2TR(TL(:,:,1),TL(:,:,2),10); VL=ans; isCVP(VLradialEdges(VL,5))
Copyright 2021-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