VLcat

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 1.0, Creation date: 2010-11-06, Last change: 2025-09-14

Time consuming adding two vertex list

Description

Time consuming adding two vertex list by using VLIndex

Example Illustration

 missing image of VLcat(V1,V2)

Syntax

[VL,j]=VLcat(V1,V2)

Input Parameter

V1: Vertex List 1
V2: Vertex List 2

Output Parameter

VL: Combined Vertex list
j: Number of added vertices




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 algorithm is designed to concatenate two vertex lists, V1 and V2, into a single combined vertex list, VL. It also provides indices of the last added vertices.

Input Parameters

Output Results

Algorithm Steps

  1. Initialize indices j, j1, j2, and j3 to zero.
  2. Determine the number of vertices in V2, denoted as n.
  3. If V1 is empty, set VL to V2 and update indices j, j1, j2, and j3 based on the number of vertices in V2. Then, return the results.
  4. Iterate over each vertex in V2:
  5. After processing all vertices, set VL to the updated V1.

The algorithm could be significantly improved by using the unique command to handle duplicate vertices more efficiently.

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