Syntax
VLOLplot(VL,OL,[i])
Input Parameter
VL : | | Vertex list |
OL : | | Object list containing different objects |
i : | | Number of object to print; default=0=all |
Copyright 2012-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, VLOLplot, is designed to plot one or all surfaces of objects from a given object list. It is part of the SG-Library and was created by Tim Lueth on April 19, 2012.
Input Parameters
- VL: Vertex list, which contains the vertices used for plotting the objects.
- OL: Object list, which contains different objects, each with its own face list (FL).
- i: (Optional) The index of the object to print. If not provided, the default is 0, which means all objects will be printed.
Algorithm Steps
- Initialize the variable
i
to 0. If a third argument is provided, set i
to this value.
- Determine the number of objects in the object list
OL
using size(OL,2)
.
- Check if
i
is greater than 0 and less than or equal to the number of objects n
:
- If true, call the function
VLFLplot
with the vertex list VL
and the face list of the i
-th object OL(i).FL
.
- If
i
is not greater than 0 or is greater than n
, iterate over each object in the object list:
- For each object, create a subplot with
n
rows and 1 column, and set the current subplot to the k
-th position.
- Set the title of the subplot to "Object #k".
- Call the function
VLFLplot
with the vertex list VL
and the face list of the k
-th object OL(k).FL
.
- Label the x-axis, y-axis, and z-axis.
- Set the axis to auto scale and equal aspect ratio.
- After plotting all objects, set the first subplot as the current subplot and call the function
PRplot
with an empty string.
Algorithm explaination created using ChatGPT on 2025-08-18 22:23. (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