FLofVLFLnearestneighborVL

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - FL/Facet Lists
Introduced first in SolidGeometry 4.9, Creation date: 2020-01-18, Last change: 2025-09-14

Facet List that contains vertices that are neighbors of a vertex list

Description

This function calls FLofVLFLvi after using TR=triangulation(FL,VL); vi=nearestNeighbor(TR,VLR);

See Also: SGisInteriorofBB , SGnearestpointsofSG , FLofVLFLvi , FLofVLFLfi , FSofSGfacet

Example Illustration

 missing image of FLofVLFLnearestneighborVL(VL,FL,VLR)

Syntax

[NFL,fi3,fi2,fi1]=FLofVLFLnearestneighborVL(VL,FL,VLR)

Input Parameter

VL: Vertex list
FL: Facet List
VLR: vertex list to find the nearest neighbor for

Output Parameter

NFL: FL(fi3,:); (GREEN)
fi3: all faces that have three points of VL(vi,:)
fi2: all faces that have 2 points of VL(vi,:)
fi1: all faces that have 1 points of VL(vi,:)

Examples


SG=SGboxsphere; FLofVLFLnearestneighborVL(SG.VL,SG.FL,rand(100,3)*2);




Copyright 2020-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