Syntax
[VL,FL]=VLFLcat2(V1,F1,V2,F2)
Input Parameter
V1 : | | Vertex list 1 |
F1 : | | Facet list 1 |
V2 : | | Vertex list 2 |
F2 : | | Facet list 2 |
Output Parameter
VL : | | concatenated vertex List |
FL : | | concatenated facet List |
Copyright 2010-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, VLFLcat2
, is designed to concatenate two sets of vertex and facet lists. It is part of the SolidGeometry library and is used to append one vertex list and one facet list to another without performing any checks.
Input Parameters
- V1: The first vertex list. It is a matrix where each row represents a vertex in 3D space.
- F1: The first facet list. It is a matrix where each row represents a facet, defined by indices pointing to rows in the vertex list
V1
.
- V2: The second vertex list, similar in structure to
V1
.
- F2: The second facet list, similar in structure to
F1
, but pointing to rows in V2
.
Output Results
- VL: The concatenated vertex list, which is a combination of
V1
and V2
.
- FL: The concatenated facet list, which combines
F1
and F2
, with the indices in F2
adjusted to account for the additional vertices from V1
.
Algorithm Steps
- Check the size of
V1
to determine if it is empty. If V1
is empty, the function returns V2
and F2
as the concatenated lists.
- Concatenate
V1
and V2
vertically to form the new vertex list VL
.
- Concatenate
F1
and F2
vertically to form the new facet list FL
. Adjust the indices in F2
by adding the number of vertices in V1
to each index, ensuring that the indices in F2
correctly reference the combined vertex list.
Algorithm explaination created using ChatGPT on 2025-08-18 23:01. (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