TR3ofVM

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - VM/Voxels
Introduced first in SolidGeometry 2.1, Creation date: 2015-01-20, Last change: 2025-08-19

returns a



See Also: VLFLofVMdelaunay , VLFLofVMmarchcube , SGofVMmarchcube , SGofVMdelaunay

Example Illustration

 missing image of TR3ofVM(V,vs,s)

Syntax

[TR4,TR3]=TR3ofVM(V,[vs,s])

Input Parameter

V:
vs:
s:

Output Parameter

TR4:
TR3:




Copyright 2015-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 function, TR3ofVM, is designed to process a 3D voxel matrix and generate triangulations. Below is a detailed explanation of the algorithm and its parameters.

Input Parameters

Output Results

Algorithm Steps

  1. Initialize voxel scaling factors vs to [1, 1, 1]. If provided, update vs with the first optional argument.
  2. Initialize scaling factor s to 1. If provided, update s with the second optional argument and adjust vs accordingly.
  3. Downsample the voxel matrix V using the scaling factor s.
  4. Compute the vertex list VL from the downsampled voxel matrix using the function VLofVM.
  5. Create a 4D Delaunay triangulation TR4 from the vertex list VL.
  6. Extract the points and connectivity list from TR4.
  7. Initialize an array isInterior to mark interior tetrahedra.
  8. Iterate over each tetrahedron in the connectivity list:
  9. Convert isInterior to a logical array.
  10. Scale the vertex list VL by the voxel scaling factors vs.
  11. Select the vertices and tetrahedra that are marked as interior using VLELselect.
  12. Create a new triangulation TR4 with the selected vertices and tetrahedra.
  13. Extract the free boundary (surface) of the triangulation TR4 to form FL.
  14. Select the vertices and faces of the free boundary using VLELselect.
  15. Create a 3D triangulation TR3 from the free boundary.
  16. If no output arguments are specified, visualize the surface using VLFLfigure and VLFLplots.
Algorithm explaination created using ChatGPT on 2025-08-19 00:40. (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