CPLremauxpoints

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 5.4, Creation date: 2024-07-04, Last change: 2025-09-15

removes points from a CPL or a PL that

Description

JUST A COPY OF CPLremdensity to find it using whichSG auxpoint
This is called polyshape not keep colinear points

See Also: PLonCPLcontour , CPLremdensity , CPLremstraightAmin

Example Illustration

 missing image of CPLremauxpoints(CPL,dist,glob)

Syntax

PL=CPLremauxpoints(CPL,[dist,glob])

Input Parameter

CPL: CPL or PL
dist: minimal distance between original points
glob: if true; All points are considered as point cloud not as CPL

Output Parameter

PL: CPL with minimal distances or PL in case of a cloud

Examples


CPLremdensity(CPLsample(29),1,true)
CPLremdensity(CPLsample(29),1)
CPLremdensity(CPLaddauxpoints(CPLsample(29),1),1)




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

Algorithm (Workflow)

The function CPLremauxpoints is designed to remove points from a Closed Polygon List (CPL) or a Point List (PL) based on specified criteria. It is essentially a copy of the function CPLremdensity and is part of the SolidGeometry library.

Input Parameters

Output Results

Function Workflow

The function CPLremauxpoints calls another function CPLremdensity with the same input parameters. This indicates that the core logic for removing points based on the specified distance and global settings is handled by CPLremdensity.

Example Usage

The function is part of a larger library and is used in conjunction with other functions like PLonCPLcontour, CPLremstraight, and CPLremstraightAmin for various operations on polygon lists.

Algorithm explaination created using ChatGPT on 2025-08-18 23:53. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21