Syntax
[VL,FL,FC]=VLFLcolcat2(V1,F1,C1,V2,F2,C2)
Input Parameter
V1 : | | Vertex list 1 |
F1 : | | Face list 1 |
C1 : | | Face color list 1 |
V2 : | | Vertex list 2 |
F2 : | | Face list 2 |
C2 : | | Face color list 3 |
Output Parameter
VL : | | Vertex list VL=[V1;V2]; |
FL : | | Face list FL=[F1;F2+size(V1,1)]
|
FC : | | Face colors FC=[C1;C2] |
Copyright 2018-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, VLFLcolcat2
, is designed to concatenate two sets of 3D surface data, including vertices, faces, and face colors. It is part of the SG-Library and was developed by Tim Lueth.
Input Parameters
- V1: Vertex list 1. This is a matrix where each row represents a vertex in 3D space.
- F1: Face list 1. This is a matrix where each row represents a face, defined by indices pointing to the vertices in V1.
- C1: Face color list 1. This is a matrix where each row represents the color of a face in F1.
- V2: Vertex list 2. Similar to V1, this matrix contains vertices for the second set of data.
- F2: Face list 2. Similar to F1, this matrix contains faces for the second set of data, defined by indices pointing to the vertices in V2.
- C2: Face color list 2. This matrix contains the colors for the faces in F2.
Output Results
- VL: The concatenated vertex list. It is formed by appending V2 to V1, resulting in a combined list of vertices.
- FL: The concatenated face list. It is formed by appending F2 to F1, with an adjustment to the indices in F2. The indices in F2 are incremented by the number of vertices in V1 to ensure they correctly reference the combined vertex list.
- FC: The concatenated face color list. It is formed by appending C2 to C1, resulting in a combined list of face colors.
The function operates by simply concatenating the input lists, with a necessary adjustment to the face indices in F2 to account for the expanded vertex list. This ensures that the faces in the second set correctly reference the vertices in the combined list.
Algorithm explaination created using ChatGPT on 2025-08-18 22:47. (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