TLFLneighbors2

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - TR/Tetrahedrons
Introduced first in SolidGeometry 2.1, Creation date: 2014-12-30, 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
In contrast to TLFLneighbors, the output parameter NL is calculated

Example Illustration

 missing image of TLFLneighbors2(TL,FL,fi)

Syntax

[VLi,TLi,NL]=TLFLneighbors2(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
NL: Neighbors list for the tetrahedron list

Examples

Show the relationship between TR3 and TR4
[vi,TLi,NL]=TLFLneighbors2(TL,FL);
a=sum(isnan(NL),2)<4
VLTLplot(VL,TL(a,:),'y');
VLTLplot(VL,TL(~a,:),'c');




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

Last html export of this page out of FM database by TL: 2025-09-21