Syntax
[VL,SI,FL,b]=VLFLselect(VL,FLG)
Input Parameter
VL : | | Original vertex list |
FLG : | | Original facet list |
Output Parameter
VL : | | Shorter vertex list |
SI : | | Sorting index |
FL : | | Reindexed facet list |
b : | | index b |
Copyright 2014-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, VLFLselect
, is designed to optimize the vertex list for a given facet list by reducing it to only the necessary vertices and reindexing the facet list accordingly. It is part of the SolidGeometry library and was developed by Tim Lueth.
Input Parameters
- VL: The original vertex list, which contains all the vertices used in the geometry.
- FLG: The original facet list, which specifies the facets using indices that refer to the vertices in the vertex list.
Output Results
- VL: The shortened vertex list, containing only the vertices that are actually used in the facets.
- SI: The sorting index, which maps the original vertex indices to the new, reduced list.
- FL: The reindexed facet list, which uses the new indices from the shortened vertex list.
- b: An index that is part of the unique operation, used internally.
- c: An index vector that maps each element of the original facet list to the unique elements.
Algorithm Steps
- Use the
unique
function on the facet list FLG
to determine the unique vertices used in the facets. This returns three outputs: SI
, b
, and c
.
- Update the vertex list
VL
to include only the vertices indexed by SI
.
- Reindex the facet list
FLG
using the index vector c
to create the new facet list FL
.
This function is more efficient and easier to understand than its predecessor, VLFLshort
, and can also be applied to edges instead of facets using a similar function, VLELselect
.
Algorithm explaination created using ChatGPT on 2025-08-19 07:59. (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