CVLsortlinestraight

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CVL/Closed Vertex Lists
Introduced first in SolidGeometry 5.1, Creation date: 2021-03-17, Last change: 2025-09-15

returns a reordered CVL

Description

If curves or lines are generated automatically from precondition, There are some situations where preconditions in combination with numerical inaccuracies lead to strong kinks and consequently to wrong calculations of normal vectors.

See Also: TLofCVL

Example Illustration

 missing image of CVLsortlinestraight(XVL)

Syntax

NVL=CVLsortlinestraight(XVL)

Input Parameter

XVL: Original Line in 3D Space

Output Parameter

NVL: Corrected Line in 3D Space

Examples


CVLsortlinestraight([0 0; 6 0; 5 0; 4 0; 7 0; 6.5 0; 10 0])




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