BUGREPORT_delaunayTriangulation

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.5 - Experiments
Introduced first in SolidGeometry 4.9, Creation date: 2020-02-08, Last change: 2025-07-20

this simple fnct shows an triangulation bug in delaunayTriangulation 2019a

Example Illustration

 missing image of BUGREPORT_delaunayTriangulation

Syntax

BUGREPORT_delaunayTriangulation




Copyright 2020-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 MATLAB function demonstrates a bug in the delaunayTriangulation function from MATLAB 2019a. The function is designed to show how the triangulation process can reference a non-existent point.

Input Parameters

Algorithm Steps

  1. Define a set of 2D points in the PLO matrix.
  2. Define edge constraints in the CL matrix.
  3. Call the delaunayTriangulation function with PLO and CL as inputs to create a triangulation object TR.
  4. Display the points, constraints, and connectivity list of the triangulation object TR.
  5. Check for a bug where the connectivity list references a non-existent point (index 7) that is not in the points list.
  6. Use the finduniqueVL function to find unique points and map the connectivity list to these points.
  7. Plot the original points and constraints using VLELplots and VLFLplot functions.
  8. Recreate the triangulation with the corrected connectivity list FL and plot it.

Functions Used

Output

The function outputs the triangulation object TR and displays plots of the points, constraints, and triangulation. It also prints a message indicating the bug in the connectivity list.

Algorithm explaination created using ChatGPT on 2025-08-19 08:21. (Please note: No guarantee for the correctness of this explanation)

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