THLof2F

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Analytical Geometry
Introduced first in SolidGeometry 1.1, Creation date: 2014-01-03, Last change: 2025-09-14

returns Tetrahedron list of two facets

Example Illustration

 missing image of THLof2F(F1,F2)

Syntax

THL=THLof2F(F1,F2)

Input Parameter

F1: 1x3 Facet
F2: 1x3 Facet

Output Parameter

THL: Single tetrahedron

Examples

Tetrahedron of 2 triangle indices:
THLof2F([1 2 3],[4 5 6])




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 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.

Input Parameters

Output Results

Algorithm Explanation

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.

Steps:

  1. The first row of THL is created using the first index of F2 and all three indices of F1: [F2(1) F1(1) F1(2) F1(3)].
  2. The second row of 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)].
  3. The third row of 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)

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