ELflip

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 1.1, Creation date: 2013-08-13, Last change: 2025-09-14

flips orientation of edge list

Description

Does not support contour edge lists.
EL=flipud(EL(:,[2 1]));


See Also: , ELswap

Example Illustration

 missing image of ELflip(EL)

Syntax

EL=ELflip(EL)

Input Parameter

EL: Edge list

Output Parameter

EL: Edge list flipped

Examples


EL=ELofn(4), ELflip(EL)




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 function, ELflip, is designed to flip the orientation of an edge list. It is a simple utility function that is part of the SolidGeometry library, specifically introduced in version 1.1. The function does not support contour edge lists.

Input Parameters

Output Results

Algorithm Explanation

The function ELflip operates as follows:

  1. The input edge list EL is processed using the flipud function. This function flips the matrix in the up-down direction.
  2. Before applying flipud, the columns of EL are swapped using EL(:,[2 1]). This operation changes the order of the columns, effectively swapping the start and end points of each edge.
  3. The result is an edge list where each edge's orientation is reversed.

Example

Consider an edge list EL generated by the function ELofn(4). When ELflip(EL) is called, the orientation of each edge in EL is flipped.

Related Functions

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