PLofCPLequidistant

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PL/Point Lists
Introduced first in SolidGeometry 5.2, Creation date: 2022-03-20, Last change: 2025-09-15

returns points on closed or open contours with equal distances

Description

IN contrast to PLaddauxpoints, this function does not return a fitting contour but only a unsorted points list.
Be careful with holes that also generate points

See Also: CPLlength , PLaddauxpoints

Example Illustration

 missing image of PLofCPLequidistant(CPL,nr,isc)

Syntax

PLN=PLofCPLequidistant(CPL,[nr,isc])

Input Parameter

CPL: SINGLE CLOSED CONTOUR
nr: bumber of points; default is 4; negative number means minimal distance
isc: false= open CPL; true=closed CPL; default is true

Output Parameter

PLN: POINT LIST on Contour with equal distances

Examples


PLofCPLequidistant(PLsquare(2,7),4)
PLofCPLequidistant(CPLsample(18),8)
PLofCPLequidistant(PLsquare(2,7),40,true) % Closed contour by default
PLofCPLequidistant(PLsquare(2,7),40,false) % Open contour
PLofCPLequidistant([-10 0;20 0],1,false) % 1 Point
PLofCPLequidistant([-10 0;20 0],2,false) % Two points
PLofCPLequidistant([-10 0;20 0],3,false) % 3 Points
PLofCPLequidistant([-10 0;20 0],-3,false) % Distance 3
PLofCPLequidistant(CPLsample(29),4,true) % multi region CPLs - numbers
PLofCPLequidistant(CPLsample(29),-4,true) % multi region CPLs - distance




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