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
- h: This is the current object from which the vertex and facet lists are to be extracted. If not provided, the function defaults to using the current axes' patches (gca).
Output Results
- VL: The vertex list of the patch object.
- FL: The facet list of the patch object.
- h: The current object being processed.
Algorithm Steps
- The function begins by setting the variable
h
to the current object of the current figure using get(gcf,'currentobject')
.
- If an input argument is provided, it overrides the default and sets
h
to the first input argument.
- The function checks if the type of
h
is 'patch' using strcmp(get(h,'Type'),'patch')
.
- If
h
is a patch object, it retrieves the facet list using get(h,'Faces')
and the vertex list using get(h,'Vertices')
.
- 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