TRcat

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

returns a concatenation of tetrahedron solids without any checks

Description

Use TRunique afterwards if desired, to remove doubled points

Example Illustration

 missing image of TRcat(TRA,TRB)

Syntax

TR=TRcat(TRA,TRB)

Input Parameter

TRA: Triangulation A
TRB: Triangulation B

Output Parameter

TR: Concatenation of Triangulation of A and B




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, TRcat, is designed to concatenate two sets of tetrahedron solids, represented as triangulations, without performing any checks. It is part of the SG-Library and was created by Tim Lueth on December 14, 2014.

Input Parameters

Output Results

Algorithm Explanation

The function TRcat performs the following steps:

  1. It combines the connectivity lists of both triangulations. The connectivity list of TRB is adjusted by adding the number of points in TRA to each index. This ensures that the indices in TRB do not overlap with those in TRA.
  2. It concatenates the points from both triangulations into a single list.
  3. It creates a new triangulation object using the combined connectivity list and the concatenated points list.

The function does not perform any checks for duplicate points or other potential issues. If needed, the user can apply the TRunique function afterwards to remove any duplicate points.

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