camofVLFLfi(VL,FL,[fi,gf])
VL : | Vertex list | |
FL : | Facet list | |
fi : | facet | |
gf : | grow arund factor; default is 10 |
SGsphere(10); SG=ans; camofVLFLfi(SG.VL,SG.FL,1000)
SGsphere(10); SG=ans; camofVLFLfi(SG.VL,SG.FL,1000,30)
This function, camofVLFLfi
, is designed to visualize a specific facet of a 3D object for inspection. It is part of the SolidGeometry library and was introduced in version 5.1. The function takes in a vertex list, a facet list, and optionally a facet index and a grow-around factor.
SG
with the vertex list VL
and facet list FL
.fi
and grow-around factor gf
from the input parameters using getfuncparams
.fi
is empty, loop through all facets with a step size of 2, calling camofVLFLfi
recursively for each facet, and pause briefly between iterations.P
of the vertices forming the specified facet.ez
of the facet using VLFLfaceNormal
. If the normal is invalid, default to [0 0 1]
.P
is a 3D point by appending a zero if necessary.T
using TofPez
and apply a small rotation with TofR
.T
using camofT
.zoomVL
with the specified grow-around factor gf
.To visualize a specific facet of a sphere:
SGsphere(10); SG = ans; camofVLFLfi(SG.VL, SG.FL, 1000);
To visualize with a custom grow-around factor:
SGsphere(10); SG = ans; camofVLFLfi(SG.VL, SG.FL, 1000, 30);Algorithm explaination created using ChatGPT on 2025-08-19 01:01. (Please note: No guarantee for the correctness of this explanation)