CPLinsertcollinearpoints
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PL/Point Lists
Introduced first in SolidGeometry 5.6, Creation date: 2025-09-12, Last change: 2025-09-15
inserts collinear auxiliary points that a minimum point distance is guaranteed
Use carefully: The 'CPLinsertcollinearpoints' function has not yet been extensively tested
Description
slightly different to RLaddauxpoints and CPLaddauxpoints
does not create collinear auxiliary points if an edge is missing!
Only if start and end point are the same, the last edge is also processed.
Same as:
PLinsertcollinearpoints == CPLinsertcollinearpoints == CVLinsertcollinearpoints
See Also: RLaddauxpoints
, CPLaddauxpoints
, VLremsuccident
, PLinsertcollinearpoints
, CVLinsertcollinearpoints
Example Illustration
Syntax
CPLN=CPLinsertcollinearpoints(CPL,[d])
Input Parameter
CPL: | | Point list without nan, open or closed |
d: | | maximum point distance to guarantee |
Output Parameter
CPLN: | | Point list with collinear auxiliary points, open or closed as PL |
Examples
CPLinsertcollinearpoints(PLsample(3),1) % open edge, identical point removed
CPLinsertcollinearpoints(PLsample(8),1) % closed contour, identical point removed
CPLinsertcollinearpoints(VLsample(16),1) % Does work also in 3D
CPLinsertcollinearpoints(VLsample(18),1) % Does work also with nan separated contours
Copyright 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