VLremstraightAmin

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 4.1, Creation date: 2017-08-19, Last change: 2025-09-14

removes points with a minal distance/area to a predecessor or successor

Description

VLremstraightCVL is an impressive simple but efficient method. Nevertheless it fails if the point density is too tight. This function VLremstraightAmin adds the removal of each second (!) point that is too tight.
The result is always open at the end!

See Also: CVLremstraightAmin

Example Illustration

 missing image of VLremstraightAmin(CVL,Amin)

Syntax

[NVL,ci]=VLremstraightAmin(CVL,[Amin])

Input Parameter

CVL: Closed Polygon Line in 2D or 3D
Amin: Minimal Area between two succeeding points; default is 1e-3;

Output Parameter

NVL: New Vertex List
ci: mapping index from original to new

Examples


VL=VLaddz(PLcircle(1,10000)); VLremstraightAmin(rounddiv(VL,1e-7),1e-3);
VLremstraightAmin(VLaddz(PLsample(3)),1e-1);
VLremstraightAmin(VLaddz(CPLsample(19)),1e-1);
VLremstraightAmin(VLaddz(CPLsample(19)),1e-2
VLremstraightAmin(VLaddz(VLsample(15)),1e-1);
VLremstraightAmin(VLaddz(CPLsample(21)),1e-1);




Copyright 2017-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