VLFLplotfacets

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Surfaces
Introduced first in SolidGeometry 4.2, Creation date: 2018-02-28, Last change: 2025-09-14

plot a facet list as separate independent facets



See Also: VLFLplot

Example Illustration

 missing image of VLFLplotfacets(VL,FL)

Syntax

h=VLFLplotfacets(VL,FL)

Input Parameter

VL: Vertex list or SG
FL: Facet list

Output Parameter

h: handle list of all facets

Examples

loadweb JACO_robot.mat
SGfigure; VLFLplotfacets(JCF)
setplotlight(h,'w',0.4)




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, VLFLplotfacets, is designed to plot a list of facets as separate independent facets. It is part of the SolidGeometry library and was introduced in version 4.2. The function takes two main input parameters and returns a handle list of all facets.

Input Parameters

Output

Algorithm Steps

  1. Set a variable nu to 500, which is used to control the frequency of updates to the plot.
  2. Check if VL is an SG object using the isSG function. If true, extract the vertex list VL and facet list FL using VLFLofSG.
  3. Determine the number of facets nf by getting the number of rows in FL.
  4. Initialize a zero vector h of size nf to store handles for each facet.
  5. Start a timer using tic to measure the execution time of the plotting loop.
  6. Loop over each facet from 1 to nf:
  7. End the timer with toc to display the elapsed time for plotting.
Algorithm explaination created using ChatGPT on 2025-08-18 22:56. (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