VLFLreorder

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 2.5.1, Creation date: 2015-09-19, Last change: 2025-09-14

returns VL and FL with reordered vertices

Description

Auxiliary function for reordering (shifting, rotation) of vertices and a corresponding face list:
VL(nvi,:)=VL;
FL=nvi(FL);


See Also: maprows , reversesortindex , VLcorrelate

Example Illustration

 missing image of VLFLreorder(VL,FL,nvi)

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

Output Results

Algorithm Steps

  1. Reorder the vertex list VL using the new vertex index list nvi to create NVL. This is done by assigning NVL(nvi,:) to VL.
  2. Update the facet list FL to use the new vertex indices by applying nvi to FL, resulting in NFL.
  3. Check if the number of columns in NFL is less than 2. If so, transpose NFL to ensure it is a column vector.
  4. 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