PLELofCPL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PLEL/Point List/Edge List
Introduced first in SolidGeometry 1.1, Creation date: 2014-01-07, Last change: 2025-09-14

converts a polybool contour point list to point list and edge list

Description

This function removes the NaN from the original point list. The orientation (cw/ccw) is not changed

the code of 2014 is still the best solution since it does not change the order or orientation of the CPLs

See Also: FLofCPL , PLFLofCPLpoly , PLFLofCPLdelaunay , FLofPLEL , FLcontourwallELn

Example Illustration

 missing image of PLELofCPL(CPL)

Syntax

[PL,EL]=PLELofCPL(CPL)

Input Parameter

CPL: Polybool contour point list

Output Parameter

PL: Point list (without NaN)
EL: Edge list

Examples


PLA=PLcircle(10); PLB=PLA*2; PLC=PLA*3;
PLD=[PLA;NaN NaN;PLB;NaN NaN;PLC]
VLplot(PLD)
PLFLofCPLdelaunay(CPLpolybool('-',PLC,CPLpolybool('-',PLB,PLA)))
[PL,EL]=PLFLofCPLdelaunay(PLD);
[VL,FL]=VLFLofPLELz(PL,EL,20);
VLFLfigure; VLFLplot(VL,FL)




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