Syntax
EL=ELflip(EL)
Input Parameter
Output Parameter
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
- EL: This is the edge list that needs to be flipped. An edge list is typically a matrix where each row represents an edge, and the two columns represent the start and end points of the edge.
Output Results
- EL: The function returns the edge list with its orientation flipped. This means that for each edge, the start and end points are swapped.
Algorithm Explanation
The function ELflip
operates as follows:
- The input edge list
EL
is processed using the flipud
function. This function flips the matrix in the up-down direction.
- 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.
- 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