FLofTL

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

returns all facets of a tetrahedron list

Description

The nx4 list is converted into a (n*4)x3 list
FL=[TL(:,[2 3 4]); TL(:,[2 4 1]); TL(:,[4 3 1]); TL(:,[2 1 43])]

Example Illustration

 missing image of FLofTL(TL)

Syntax

FL=FLofTL(TL)

Input Parameter

TL: Tetrahedron list

Output Parameter

FL: Facet list (all normal vectors outside)




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 convert a list of tetrahedrons into a list of facets. The function is named FLofTL and is part of the SG-Library. Below is a detailed explanation of the algorithm and its parameters.

Input Parameters

Output Results

Algorithm Steps

  1. Extract the vertices of each tetrahedron from the input matrix TL:
    • a = TL(:,1): First vertex of each tetrahedron.
    • b = TL(:,2): Second vertex of each tetrahedron.
    • c = TL(:,3): Third vertex of each tetrahedron.
    • d = TL(:,4): Fourth vertex of each tetrahedron.
  2. Determine the number of tetrahedrons n using size(TL,1).
  3. Construct the initial facet list FL by combining the vertices to form four facets for each tetrahedron:
    • [b c d]: First facet using vertices b, c, and d.
    • [b d a]: Second facet using vertices b, d, and a.
    • [d c a]: Third facet using vertices d, c, and a.
    • [b a c]: Fourth facet using vertices b, a, and c.
  4. Reshape the facet list FL to ensure the correct format:
    • Use reshape to rearrange the facets into a (n*4)x3 matrix.
    • The reshaping process involves transposing and concatenating the facets to ensure each row represents a single facet.

The final output is a list of facets where each facet is defined by three vertices, and the normal vectors of these facets point outward from the tetrahedron.

Algorithm explaination created using ChatGPT on 2025-08-18 22:09. (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