FL=FLofCVLneigborpoints(CVL)
CVL : | 3D Point list |
FL : | Facet list combining three neigborpoint [i-1 i i+1] |
FLofCVL(PLcircle(1))
FLofCVLneigborpoints(PLcircle(1))
This function, FLofCVLneigborpoints
, is designed to create a list of facets from a given list of 3D points, referred to as CVL
. The function is part of the SolidGeometry library and was introduced in version 5.3. It is used to close a 3D contour by connecting three successive points to form a facet.
n x 3
, where n
is the number of points.CVL
list. The indices are arranged in a cyclic manner to ensure the contour is closed.n
, in the CVL
list using size(CVL,1)
.FL
, using the mod1
function to handle cyclic indexing. The mod1
function ensures that the indices wrap around, effectively closing the contour.FL
list is constructed by combining three successive points: [i-1, i, i+1]
, where i
is the current index.nargout==0
), the function will plot the contour using SGfigure
and VLFLplot
with a green color ('g').The function can be used with a circular point list generated by PLcircle(1)
as shown in the example:
FLofCVL(PLcircle(1)) FLofCVLneigborpoints(PLcircle(1))
This will generate and optionally plot the facets of the circular contour.
Algorithm explaination created using ChatGPT on 2025-08-18 23:11. (Please note: No guarantee for the correctness of this explanation)