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
- TRA: This is the first input triangulation, referred to as Triangulation A. It contains a set of points and a connectivity list that defines how these points form tetrahedrons.
- TRB: This is the second input triangulation, referred to as Triangulation B. Similar to TRA, it includes a set of points and a connectivity list.
Output Results
- TR: The output is a new triangulation that represents the concatenation of Triangulation A and Triangulation B.
Algorithm Explanation
The function TRcat
performs the following steps:
- 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.
- It concatenates the points from both triangulations into a single list.
- 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