VLFLtrianglegeometry

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

returns all important information on the triangles of a facet list

Description

precalculation function
Call once to analyze meshes afterwards

See Also: SGchecktrianglegeometry , VLFLfaceAngles , VLFLfaceNormal

Example Illustration

 missing image of VLFLtrianglegeometry(VL,FL,fi)

Syntax

[w,d,A,NL,NN]=VLFLtrianglegeometry([VL,FL,fi])

Input Parameter

VL: Vertex list
FL: Facet list [1 2 3; etc
fi: face index; makes sense only if there is no output

Output Parameter

w: angle [w1 w2 w3] wrt. [v1 v2 v3]
d: length [d1 d2 d3] wrt. opponent edge to [v1 v2 v3]
A: area of triangle
NL: Normal vector of facets
NN: Neigbor of facet wrt. opponent edge to [v1 v2 v3]

Examples


VLX=[4 4; 10 0; 0 10; 7 6; 0 0; 10 10];
FLX=[4 3 1; 3 5 1; 4 6 3; 5 2 1; 2 6 4; 1 2 4];

VLFLtrianglegeometry(VLX,FLX)




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

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