CPLremstraightAmin

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 4.4, Creation date: 2018-11-13, Last change: 2025-09-14

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

Description

Same as CVLremstraightAmin
This function seperates individual CPLs by nan and processes them using VLremstraightAmin The result is always an open end CPL! Ohter function such as CVLinsertT or CPLaddauxpoints insert additional points into a contour

See Also: CVLremstraightAmin , CVLremstraight , CVLinsertT

Example Illustration

 missing image of CPLremstraightAmin(CPL,Amin)

Syntax

NPL=CPLremstraightAmin(CPL,[Amin])

Input Parameter

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

Output Parameter

NPL: New Vertex List

Examples


CPLremstraightAmin(VLaddz([PLcircle(10,100); nan nan;PLcircle(1,100)]),1)
CPLremstraightAmin([PLcircle(10,100); nan nan;PLcircle(1,100)],1)




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