Syntax
[h,VL,FL]=surfofgca([gh])
Input Parameter
gh : | | axis handle; default is gca |
Output Parameter
h : | | handle to all surfaces of hf |
VL : | | Vertex list of surface |
FL : | | Triangulated Facet List of Surfaces using surf2patch
|
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)
Input Parameters
gh: This is an axis handle. If not provided, the default is the current axis, obtained using gca
.
Output Results
h: A handle to all surface objects found within the specified graphics handle.
VL: A list of vertices for the surfaces.
FL: A triangulated facet list of the surfaces, generated using the surf2patch
function.
Algorithm Steps
- Initialize
gh
to the current axis using gca
.
- Check if there is at least one input argument and if it is not empty. If so, set
gh
to the provided argument.
- Use
findall
to find all objects of type 'surface' within the specified graphics handle gh
. Assign these objects to h
.
- If more than one output is requested, call the function
VLFLofSurf
with h
to obtain the vertex list VL
and the facet list FL
.
Algorithm explaination created using ChatGPT on 2025-08-18 23:02. (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