PLELofCPLplain

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PLEL/Point List/Edge List
Introduced first in SolidGeometry 5.6, Creation date: 2025-09-13, Last change: 2025-09-15

returns a PL and EL and a modified CPL based on the explicit qish of "open" or "closed"


Use carefully: The 'PLELofCPLplain' function has not yet been extensively tested

Description

Works with 2D and 3D contours. "plain" means here that there is no splitpoint separation or descomposition done!
This function of 2025 is required, since the original function of 2014 was modified 2018 using the polyshape concept, which was modified by mathwork, so that since 2024, the original concept had to be used again. Since there is in general a problem how to handle closed and open contours, which sometimes is used explicitly and sometimes implicitly, this function returns on default closed contours
Remember, if you use CPLrepair in 2D, this can change the orientation of the CPLs.

See Also: PLELofCPL

Example Illustration

 missing image of PLELofCPLplain(CPL,

Syntax

[NPL,NEL,NCPL]=PLELofCPLplain([CPL,"open","closed"])

Input Parameter

CPL: Closed Polygon list including nan separated contours
"open": if used, the results describe an open contour
"closed": if use, the results describe an closed contour

Output Parameter

NPL: New Point List
NEL: New Edge List
NCPL: New CPL, open or closed as required;

Examples


PLELofCPLplain(CVLsample(18));
PLELofCPLplain(CVLsample(18),'open');
PLELofCPLplain(CPLsample(47));
PLELofCPLplain(CPLrepair(CPLsample(47))); % separate contours first in 2D




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