ELofFLpatch

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - EL/Edge Lists
Introduced first in SolidGeometry 5.1, Creation date: 2022-01-13, Last change: 2025-09-15

converts a patch (more than triangles) list into an edge list

Description

returns the edge list in patch order. A more general solution than ELofFL of July 2012

See Also: ELofFLborder , ELofFL , ELunique

Example Illustration

 missing image of ELofFLpatch(FL)

Syntax

EL=ELofFLpatch(FL)

Input Parameter

FL: Facet list (n x m) % m>=3

Output Parameter

EL: Edge list (n x 2)

Examples


FL=[1 2 3 4 5;5 4 3 2 1]; ELofFLpatch(FL), ELunique(ans)




Copyright 2022-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, ELofFLpatch, converts a facet list (FL) into an edge list (EL). It is designed to handle a list of patches and return the edges in the order they appear in the patches.

Input Parameters

Output Results

Algorithm Explanation

  1. Determine the number of edges per patch by calculating the number of columns in the facet list, ne = size(FL,2).
  2. Create an extended facet list, FLE, by appending the first column of FL to the end of FL. This ensures that the last vertex of each patch connects back to the first vertex, forming a closed loop.
  3. Determine the number of patches, nf = size(FL,1).
  4. Initialize a counter, cc, to zero. This counter will track the position in the edge list where the next set of edges will be inserted.
  5. Iterate over each vertex in the patch (from 1 to ne):

The function effectively converts each patch into a series of edges, ensuring that the edges are listed in the order they appear in the patch. This approach is more general than previous implementations, allowing for a flexible and efficient conversion of facet lists to edge lists.

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