SGofVMdelaunay

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - VM/Voxels
Introduced first in SolidGeometry 3.4, Creation date: 2017-02-17, Last change: 2025-09-14

returns a surface model for a delaunay reconstructed volume model

Description

This function takes about 20 second for a 256 x 256 x 100 voxel model and 180 seconds for a 512 x 512 x 126

See Also: VLFLofVMdelaunay , VLFLofVMmarchcube , TR3ofVM , SGofVMmarchcube

Example Illustration

 missing image of SGofVMdelaunay(V,vs,s)

Syntax

[SG,TR4]=SGofVMdelaunay(V,[vs,s])

Input Parameter

V: Voxel Model (~=0 is reconstruction)
vs: voxel size, optional
s: step size

Output Parameter

SG: Solid Geoemtry
TR4: Delaunay tetrahedron model

Examples


[V,vs]=VMreaddicomdir('AIM_DICOMFILES');
[a,as]=VMresize(V,[0.5 0.5 0.5],vs);
SG=SGofVMdelaunay(a>1400,as);
SGcut(SG,40);
c=CPLofSGslice3(SG,20);
PLFLofCPLdelaunay(c);
PLFLofCPLpoly(c)




Copyright 2017-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, SGofVMdelaunay, reconstructs a surface model from a voxel model using Delaunay triangulation. It is part of the SG-Library and was developed by Tim Lueth in 2017.

Input Parameters

Output Results

Algorithm Steps

  1. Initialize vs to [1 1 1]. If a voxel size is provided in varargin, update vs accordingly.
  2. Initialize s to 1. If a step size is provided in varargin, update s and scale vs by s.
  3. Call the function VLFLofVMdelaunay with parameters V, vs, and s to obtain the solid geometry and Delaunay tetrahedron model.
  4. If no output arguments are specified, visualize the result using SGfigure, SGplot, and VLFLplotlight. Set the lighting to Gouraud and adjust the view angle.
Algorithm explaination created using ChatGPT on 2025-08-19 00:36. (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