VLELselect
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 1.0, Creation date: 2013-01-07, Last change: 2025-09-14
returns only the required vertices for a given edge list. The edge list is reindexed
Description
In some cases, for instance when surfaces are tessellated, it makes more sense to operate using only the required vertices. Afterwards, the vertex list is much shorter, the index list reindexed. By using NEL=SI(NEL) for a new edge list or NFL=SI(NFL) for a facet list, the resulting NEL or FEL are backindexed to the original vertex list.
FL=SI(FL); if size(FL,2)==1; FL=FL'; end;
EL=SI(EL); if size(EL,2)==1; EL=EL'; end;
This function is much faster and powerful than VLELshort, and easier to understand!
It also works with facets instead of edges ==> VLFLselect
See Also: VLFLshort2
, VLFLselect
, PLELselect
, PLFLselect
, TRselect
Example Illustration
Syntax
[VL,SI,EL]=VLELselect(VL,ELG)
Input Parameter
VL: | | Original vertex list |
ELG: | | Original edge list |
Output Parameter
VL: | | Shorter vertex list |
SI: | | Sorting index |
EL: | | Reindexed edge list |
Examples
VL=rand(10,3); EL=ELofn(5);
SGfigure; VLplot(VL,'b*'); VLELplots(VL,EL);
[VL,SIL,EL]=VLELselect(VL,EL)
SGfigure; VLplot(VL,'b*'); VLELplots(VL,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
Last html export of this page out of FM database by TL: 2025-09-21