VLFLfaceneighborhood

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 5.1, Creation date: 2021-04-10, Last change: 2025-09-15

return the neighbors and the neighbor neighbors



See Also: VLFLfaceneighborangle

Example Illustration

 missing image of VLFLfaceneighborhood(VL,FL,fi,n)

Syntax

fil=VLFLfaceneighborhood(VL,FL,fi,n)

Input Parameter

VL: Vertex list
FL: Facet list
fi: face index
n: shells of neighbors

Output Parameter

fil: cell list of neighborhood

Examples


load JACO_robot.mat % or loadweb
VLFLfaceneighborhood(JC1.VL,JC1.FL,11181,10)
VLFLfaceneighborhood(SGsphere(1),'',100,2)




Copyright 2021-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, VLFLfaceneighborhood, is designed to find the neighboring faces of a given face in a 3D mesh, and it can also find neighbors of neighbors up to a specified number of shells.

Input Parameters

Output

Algorithm Steps

  1. Check if VL is a special geometry object using isSG. If true, extract FL and VL from it.
  2. Initialize fil as a cell array with n cells.
  3. Store the initial face index fi in fis.
  4. Create a triangulation object TR using FL and VL.
  5. For each shell from 1 to n:
  6. If no output is requested (nargout==0), visualize the mesh:
Algorithm explaination created using ChatGPT on 2025-08-19 01:21. (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