PLremstraight

by Tim Lueth & Christopher Schlichter, SG-Lib Toolbox: SolidGeometry 5.5 - PL/Point Lists
Introduced first in SolidGeometry 3.8, Creation date: 2017-04-06, Last change: 2025-07-20

removes a point if its distance to predecessor is smaller than a limit

Description

This implementation may behave strange because of the 3rd parameter => See examples

See Also: eps , eps2

Example Illustration

 missing image of PLremstraight(VL,de,al)

Syntax

[VL,DL,w]=PLremstraight(VL,[de,al])

Input Parameter

VL: Vertex list
de: minimal point distance
al: minimal angle difference; default is 1e-4 instead of eps2

Output Parameter

VL: Final vertex list
DL: Final Distance list
w: Final Angle list

Examples


CVLremstraight(PLcircle(10,4),1e-2) % works as expected
CVLremstraight(PLcircle(10,400),1e-2) % may be unexpeted since empty
CVLremstraight(PLcircle(10,400),1e-2,eps2) % works as expected




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-08-09