ELorder
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 2.0, Creation date: 2014-12-25, Last change: 2025-09-14
reorders the edge list (triangle, tetrahedron) to individual polygons, surfaces, solids
Description
Equivalent to TRorder or SGorder but on edge level (in fact works with all index lists). Improved in comparision with VLFLseparate.
All edges,facets,tetrahedrons of a solid use the same points. In case that a solid geometry can be separated into several independent solids, the given list here is ordered and in addition a list with starting rows and end rows in the returned list is returned.
- For edges, one common point defines the attachment
- For facets, two common points define the attachment
- For tetrahedrons, three common points define the attachment
Anyway, exceptions are possible by the second input parameter
ELorder does not use the function neighbors
See Also: ELorder
, FLorder
, FLseparate
, TRorder
, SGorder
, SGseparate
, graphofEL
Example Illustration
Syntax
[ELN,SIL]=ELorder(EL,[jv])
Input Parameter
EL: | | edge list/facet list/tetrahedron list consisting of several solids |
jv: | | common vertices that define a connection; default is size(EL,2)-1 |
Output Parameter
ELN: | | ordered edge list/facet list/tetrahedron list of several solids |
SIL: | | Solid index list (start and end-row) in returned list |
Examples
Separate the surface of SGsample(8) and SGsample(9)
SG=SGsample(8);
TR3=triangulation(SG.FL,SG.VL);
FEL=featureEdges(TR3,0.001);
[a,b]=ELorder(FEL); b
Copyright 2014-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
Last html export of this page out of FM database by TL: 2025-09-21