TLFLneighbors

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - TR/Tetrahedrons
Introduced first in SolidGeometry 2.1, Creation date: 2014-12-29, Last change: 2025-09-14

returns the vertex indices of a tetrahedron list that are the attachments to th facet list

Description

returns a cell array containing the vertex indices of a tetrahedron list that are the attachments to the facet list. For a correct tetrahedron list TL and a correct surface facet list, the cell contains zero, one or two elements

Example Illustration

 missing image of TLFLneighbors(TL,FL,fi)

Syntax

[VLi,TLi]=TLFLneighbors(TL,FL,[fi])

Input Parameter

TL: tetrahedron list nx4
FL: facet list nx3
fi: optional selection list for FL; default is 1:end

Output Parameter

VLi: cell array of the vertex indices attached to the facets
TLi: Tetrahedron indices attached to the facets




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 algorithm is designed to find the vertex indices of a tetrahedron list that are attached to a given facet list. It is implemented in a MATLAB function called TLFLneighbors. Below is a detailed explanation of the algorithm and its parameters.

Input Parameters

Output Results

Algorithm Steps

  1. Initialize the selection of facets fi to all facets if not provided. If fi is provided, update FL to include only the selected facets.
  2. Create two cell arrays, VLi and TLi, with the same number of rows as FL. These will store the vertex and tetrahedron indices, respectively.
  3. Iterate over each facet in FL:
Algorithm explaination created using ChatGPT on 2025-08-19 01:41. (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