FLofCPL
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - CPL/Closed Polygon Lists
Introduced first in SolidGeometry 3.6, Creation date: 2017-03-17, Last change: 2025-09-14
misleading fnct - use PLFLofCPLdelaunay, PLFLofCPLpoly instead
Description
Unfortunately such a function is not possible, since the CPL format contains nan and repeating points. The best solution would be to use PLFLofCPLdelaunay or PLFLofCPLpoly.
CPLs are more convenient than PL, EL but have some disadvantages
See Also: PLFLofCPLpoly
, PLFLofCPLdelaunay
, PLELofCPL
, FLofPLEL
Example Illustration
Syntax
FL=FLofCPL(CPL)
Input Parameter
Output Parameter
Examples
Try instead
PLFLofCPLdelaunay(CPL)
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
Algorithm (Workflow)
The function FLofCPL is designed to convert a Closed Polygon List (CPL) into a Facet List (FL). However, the function itself is not implemented and instead suggests using alternative functions due to limitations with the CPL format.
Input Parameters
- CPL: A Closed Polygon List, which is a data structure representing a closed polygon. It may contain
NaN values and repeating points, which complicates direct conversion to a Facet List.
Output Results
- FL: A Facet List, which is intended to be the output of the conversion process from the CPL.
Algorithm Explanation
The function FLofCPL is essentially a placeholder or a misleading function, as it does not perform any operations. Instead, it advises using alternative functions such as PLFLofCPLdelaunay or PLFLofCPLpoly for converting a CPL to a FL. These alternative functions are better suited for handling the complexities of the CPL format, which includes NaN values and repeating points.
Alternative Functions
- PLFLofCPLdelaunay: This function likely uses Delaunay triangulation to convert a CPL into a FL, handling the complexities of the CPL format.
- PLFLofCPLpoly: This function likely uses a polygon-based approach to convert a CPL into a FL, also addressing the issues with
NaN values and repeating points.
The function FLofCPL is part of the SolidGeometry library and was introduced in version 3.6. It is recommended to use the alternative functions mentioned for practical applications.
Algorithm explaination created using ChatGPT on 2025-08-18 23:14. (Please note: No guarantee for the correctness of this explanation)
Last html export of this page out of FM database by TL: 2025-09-21