VLofgcalines

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Visualization
Introduced first in SolidGeometry 5.0, Creation date: 2020-09-04, Last change: 2025-08-18

creates a list of vertex points used in



See Also: VLofgca

Example Illustration

 missing image of VLofgcalines

Syntax

VL=VLofgcalines

Output Parameter

VL:

Examples


VL=[20.4365 0.0045 7.4322
20.1242 0.0055 4.1943
20.3669 0.0056 4.1475
20.3660 0.0056 4.1477
20.3792 0.0063 1.7431]
SGfigure; CVLplots(VL); zoomVL(VLofgcalines); axis normal




Copyright 2020-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 extracts vertex points from line objects in the current axes of a MATLAB figure and compiles them into a list. The function is part of the SolidGeometry library and is used for visualization purposes.

Input Parameters

The function VLofgcalines does not take any input parameters. It operates on the current axes in a MATLAB figure, which is accessed using gca.

Output

The function returns a matrix VL, where each row represents a vertex point with its X, Y, and Z coordinates.

Algorithm Steps

  1. Find all line objects in the current axes using findobj(gca, 'Type', 'Line'). This returns a handle array h of line objects.
  2. Initialize a large matrix VL with 100,000 rows and 3 columns to store the vertex points. This is a preallocation step to improve performance.
  3. Initialize a counter k to zero. This counter keeps track of the number of vertex points added to VL.
  4. Iterate over each line object in h:
  5. After processing all line objects, truncate VL to only include the rows that contain vertex points, i.e., the first k rows.

Example Usage

The function can be used in conjunction with other visualization functions such as SGfigure, CVLplots, and zoomVL to display and manipulate the vertex points in a MATLAB figure.

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