ELsort

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 3.8, Creation date: 2017-04-06, Last change: 2025-09-14

returns a increasing sorted edge list separated by NaN

Description

Does replace sortEL. Branches are not allowed! Use ELsortFE for a complete processing.
This function is able to handle NaN separated Edge lists and orders them upwards from frist to last and left to right. In addition the chains are linked together
woNaN can be used ti remove the NaN NaN separators later.

See Also: ELsortFE , ELunsort , ELuniqueofFL , CELofEL , woNaN , ELremove

Example Illustration

 missing image of ELsort(EIL)

Syntax

EIL=ELsort(EIL)

Input Parameter

EIL: Edge List

Output Parameter

EIL: Edge List




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)

This function, ELsort, is designed to sort an edge list (EIL) that may contain NaN-separated segments. The function processes these segments to ensure they are sorted in increasing order, both from first to last and left to right, and links the chains together.

Input Parameters

Output

Algorithm Steps

  1. Initialize a counter k to zero. This counter will track the position in the output list.
  2. Determine the number of NaN-separated segments in the input edge list EIL using the function separateNaN.
  3. Iterate over each segment i from 1 to n (the number of segments):
  4. Trim the output list EIL to remove any unused trailing rows.
  5. Correct the order of edges in the list to ensure continuity:
Algorithm explaination created using ChatGPT on 2025-08-19 01:29. (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