VLFLofPatch

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Visualization
Introduced first in SolidGeometry 1.0, Creation date: 2012-07-08, Last change: 2025-09-14

returns vertex list and facet list of current figure or the current object

Example Illustration

 missing image of VLFLofPatch(h)

Syntax

[VL,FL,h]=VLFLofPatch([h])

Input Parameter

h: current object; default is gca's patches

Output Parameter

VL: Vertex list
FL: Facet list
h: current object




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, VLFLofPatch, is designed to extract the vertex list (VL) and facet list (FL) from a graphical object, specifically a patch object, in MATLAB. It is part of the SG-Library and was created by Tim Lueth in 2012.

Input Parameters

Output Results

Algorithm Steps

  1. The function begins by setting the variable h to the current object of the current figure using get(gcf,'currentobject').
  2. If an input argument is provided, it overrides the default and sets h to the first input argument.
  3. The function checks if the type of h is 'patch' using strcmp(get(h,'Type'),'patch').
  4. If h is a patch object, it retrieves the facet list using get(h,'Faces') and the vertex list using get(h,'Vertices').
  5. If h is not a patch object, it sets VL and FL to empty arrays and h to 0.
Algorithm explaination created using ChatGPT on 2025-08-18 22:05. (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