Syntax
[PL,SI,EL]=PLELselect(PL,ELG)
Input Parameter
PL : | | Original point list |
ELG : | | Original edge list |
Output Parameter
PL : | | Shorter point list |
SI : | | Sorting index |
EL : | | Reindexed edge list |
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, PLFLselect
, is designed to optimize the handling of point and edge lists, particularly useful in scenarios like surface tessellation. It reduces the point list to only the necessary points and reindexes the edge list accordingly.
Input Parameters
- PL: The original list of points. This is a matrix where each row represents a point in space.
- ELG: The original edge list. This is a matrix where each row represents an edge, defined by indices pointing to the points in
PL
.
Output Results
- PL: A reduced list of points, containing only those points that are referenced by the edges in
ELG
.
- SI: A sorting index that maps the original point indices to the new reduced list.
- EL: A reindexed edge list, where the indices now refer to the positions in the reduced point list.
Algorithm Steps
- Use the
unique
function on ELG
to find all unique point indices that are referenced by the edges. This returns:
SI
: The unique indices of points used in ELG
.
c
: An array that maps each original edge index to its new index in the reduced list.
- Reduce the point list
PL
to only include the points at the indices specified by SI
.
- Reindex the edge list
ELG
using the mapping array c
to create the new edge list EL
. This is done by reshaping c
to match the dimensions of ELG
.
This function is efficient and straightforward, making it preferable over similar functions like PLELshort
. It also supports operations on facets, not just edges, as indicated by its compatibility with PLFLselect
.
Algorithm explaination created using ChatGPT on 2025-08-19 01:32. (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