VLFLDelaunayVLEL

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

closes a surface by tesselation of triangles using Delaunay

Description

uses matlab function DelaunayTri

Example Illustration

 missing image of VLFLDelaunayVLEL(p1,p2,p3,OVL,OEL)

Syntax

[VLA,FLA,CLA,VLB,FLB]=VLFLDelaunayVLEL(p1,p2,p3,OVL,OEL)

Input Parameter

p1: Point 1 of outer triangle
p2: Point 2 of outer triangle
p3: Point 3 of outer triangle
OVL: Vertex list
OEL: Edge list of contour and constraints

Output Parameter

VLA: Vertex list of closed surface
FLA: Facet list of closed surface
CLA: Constraint list
VLB: Vertex list of removed surface, wrt convex hull
FLB: Vertex list of removed surface, wrt convex hull




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 algorithm is designed to close a surface by tessellating triangles using the Delaunay triangulation method. It is part of the VLFL-Library and was created by Tim Lueth on August 11, 2012. The function is named VLFLDelaunayVLEL and it utilizes the MATLAB procedure DelaunayTri.

Input Parameters

Output Results

Algorithm Steps

  1. Check if the edge list OEL is empty. If it is, return empty lists for all outputs.
  2. Convert the vertex list OVL from Cartesian to barycentric coordinates using the function carttobaryVL with respect to the points p1, p2, p3.
  3. Perform Delaunay triangulation on the barycentric coordinates using DelaunayTri, with OEL as constraints.
  4. Determine the in-out status of the triangulation using inOutStatus.
  5. Convert the triangulated vertices back to Cartesian coordinates using barytocartUVL.
  6. Assign the converted vertices to VLA and VLB.
  7. Assign the facets of the triangulation to FLA and FLB, based on the in-out status.
  8. Shorten the vertex and facet lists using VLFLshort and swap facets using FLswap for VLA and FLA.
  9. Shorten the vertex and facet lists for VLB and FLB using VLFLshort.
  10. Assign the constraints from the Delaunay triangulation to CLA.
  11. Warnings are turned off at the beginning and restored at the end of the function. The last warning message and ID are captured using lastwarn.
Algorithm explaination created using ChatGPT on 2025-08-19 01:44. (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