Syntax
[VL,FL]=VLFLreorder(VL,FL,nvi)
Input Parameter
VL : | | Vertex list [n x 3] |
FL : | | Facet list (mx3) |
nvi : | | new vertex index list (same length as VL) (nx1) |
Output Parameter
VL : | | Resulting vertex list [nx3] |
FL : | | Facet list using the new numbers |
Copyright 2015-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, VLFLreorder
, is designed to reorder a list of vertices and their corresponding face list. It is part of the SolidGeometry library and was introduced in version 2.5.1. The function takes three input parameters and returns two output results.
Input Parameters
- VL: A vertex list, which is an
n x 3
matrix where each row represents the coordinates of a vertex.
- FL: A facet list, which is an
m x 3
matrix where each row represents a triangle by indexing into the vertex list.
- nvi: A new vertex index list, which is a vector of length
n
that specifies the new order of the vertices.
Output Results
- NVL: The reordered vertex list, which is an
n x 3
matrix.
- NFL: The facet list updated to use the new vertex indices.
Algorithm Steps
- Reorder the vertex list
VL
using the new vertex index list nvi
to create NVL
. This is done by assigning NVL(nvi,:)
to VL
.
- Update the facet list
FL
to use the new vertex indices by applying nvi
to FL
, resulting in NFL
.
- Check if the number of columns in
NFL
is less than 2. If so, transpose NFL
to ensure it is a column vector.
- Check if the number of columns in
NVL
is less than 2. If so, transpose NVL
to ensure it is a column vector.
Algorithm explaination created using ChatGPT on 2025-08-18 23:27. (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