CELofPL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 1.1, Creation date: 2013-08-14, Last change: 2025-09-14

returns single contour edge list for a points list

Description

Same as ELofCVL, very similar to ELofn, different to ELofFL

Example Illustration

 missing image of CELofPL(PL)

Syntax

CEL=CELofPL(PL)

Input Parameter

PL: Points list (2D), works also with VL (3D)

Output Parameter

CEL: Contour edge list




Copyright 2013-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)

This function, CELofPL, is designed to generate a contour edge list from a given list of points. It is part of the SG-Library and was created by Tim Lueth on August 14, 2013. The function is similar to ELofCVL and ELofn, but different from ELofFL.

Input Parameters

Output Results

Algorithm Explanation

The function begins by determining the number of points, n, in the input list PL using the size function. This is done by checking the number of rows in PL, as each row represents a point.

Next, the function constructs the contour edge list, CEL. This is achieved by creating a two-row matrix. The first row is a sequence of numbers from 1 to n, representing the starting point of each edge. The second row is a sequence from 2 to n, followed by 1, representing the ending point of each edge. This ensures that the last point connects back to the first point, forming a closed loop.

The resulting CEL is a matrix where each row represents an edge, with the first column indicating the starting point and the second column indicating the ending point of the edge.

Algorithm explaination created using ChatGPT on 2025-08-18 21:48. (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