VLFLclose3DC

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SG/Solids
Introduced first in SolidGeometry 1.0, Creation date: 2012-04-29, Last change: 2025-09-14

Solid procedure to generate facets for ONE closed contour

Description

It is in principle identical to VLFLcloseC but supports also the 3rd dimension to generate a solid based on a height or a displacement vector. For closing objects with an outer and inner contour, used VLFLclose3D2C. The procedure nows supports also concave contours as long as they does not cross itself.

Example Illustration

 missing image of VLFLclose3DC(VL,h)

Syntax

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

Input Parameter

VL: Vertex list or point list with 4 ore more points
h: optional height or displacement vector; default is 0;

Output Parameter

VL: Vertex list (resorted)
FL: Facet list

Examples

Close a simple square:
PL=[0 0 0; 10 0 0; 10 10 0; 0 10 0];
[VL,FL]=VLFLcloseC (PL,5);
[VL,FL]=VLFLcloseC (PL,[10;10;10]);
VLFplot (VL,FL);




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

Last html export of this page out of FM database by TL: 2025-09-21