ELsortFE

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - EL/Edge Lists
Introduced first in SolidGeometry 4.2, Creation date: 2018-04-18, Last change: 2025-09-14

groups and sorts unsorted edge lists

Description

Feature Edge lists are unsorted and not directed. This functions separates the edge lists into groups of meshes and contours and sorts contours into one direction. There is no guarantee that it is the right direction since the vertices are unknown to this function.

See Also: ELconnectedgroups , CELofEL

Example Illustration

 missing image of ELsortFE(FEL)

Syntax

[EL,CEL,mi]=ELsortFE(FEL)

Input Parameter

FEL: Unsorted edge list for instance a feature edge list

Output Parameter

EL: Edge list
CEL: Contour index list
mi: mesh index; false = contour, true is mesh

Examples


ELsortFE(FEofSG(SGsample(32)))




Copyright 2018-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 algorithm processes an unsorted edge list, typically a feature edge list, to group and sort the edges into meshes and contours. The contours are sorted in one direction, but the correct direction is not guaranteed due to unknown vertices.

Input Parameters

Output Results

Algorithm Steps

  1. Call ELconnectedgroups(FEL) to obtain NEL (connected edge list) and CIL (contour index list).
  2. Determine the number of groups n from the size of CIL.
  3. Initialize mi as a logical array of size n with false values.
  4. Set EL to FEL and CEL to CIL.
  5. Iterate over each group i from 1 to n:
  6. If no output arguments are specified, plot the results:
Algorithm explaination created using ChatGPT on 2025-08-19 07:42. (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