ELdirectVLEL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 1.0, Creation date: 2013-01-08, Last change: 2025-09-14

returns a edge list, in which all contours have the same direction than the first contour in the edge list

Description

Generates a contour index list. Afterwards change the direction of all contour edge lists as part of the contour index list in a way, that all contours have the same direction (right hand rule);

Example Illustration

 missing image of ELdirectVLEL(VL,EL)

Syntax

ELD=ELdirectVLEL(VL,EL)

Input Parameter

VL: Vertex list
EL: Facet list

Output Parameter

ELD: Directed 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 algorithm processes a list of vertices and edges to ensure that all contours have the same direction, following the right-hand rule. It is part of the SG-Library and was developed by Tim Lueth in 2013.

Input Parameters

Output

Algorithm Steps

  1. Generate a contour index list (CIL) from the edge list (EL) using the function CILofEL(EL).
  2. Determine the number of contours nC using the size of CIL.
  3. Calculate the transformation matrix TO for the first contour using the function TofPCVL on the vertices of the first contour.
  4. Select and transform the vertex list VL and edge list EL using VLELselect and VLtransT with the inverse of TO.
  5. Extract the 2D coordinates PLx from the transformed vertex list.
  6. For each contour i from 1 to nC:
  7. Return the directed edge list ELD by applying the selection index SI to the modified edge list ELx.
Algorithm explaination created using ChatGPT on 2025-08-19 00:09. (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