THL=THLof2F(F1,F2)
F1 : | 1x3 Facet | |
F2 : | 1x3 Facet |
THL : | Single tetrahedron |
Tetrahedron of 2 triangle indices:
THLof2F([1 2 3],[4 5 6])
This function, THLof2F
, is designed to generate a tetrahedron list from two given facets, F1
and F2
. The function is part of the SG-Library and was created by Tim Lueth in 2014.
The function constructs a tetrahedron by combining the indices from the two input facets, F1
and F2
. The output, THL
, is a 3x4 matrix where each row represents a set of four indices that form a tetrahedron.
THL
is created using the first index of F2
and all three indices of F1
: [F2(1) F1(1) F1(2) F1(3)]
.THL
is created using the first two indices of F2
and the last two indices of F1
: [F2(2) F2(1) F1(2) F1(3)]
.THL
is created using the last two indices of F2
and the first and last indices of F1
: [F2(2) F2(3) F2(1) F1(3)]
.This construction method effectively combines the two facets into a single tetrahedron by using their indices in a specific order.
Algorithm explaination created using ChatGPT on 2025-08-18 21:51. (Please note: No guarantee for the correctness of this explanation)