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
- V: The voxel model, where non-zero values indicate the regions to be reconstructed.
- vs: Voxel size, which is optional. If not provided, defaults to [1 1 1].
- s: Step size, which is optional. If provided, it scales the voxel size.
Output Results
- SG: The solid geometry resulting from the reconstruction.
- TR4: The Delaunay tetrahedron model.
Algorithm Steps
- Initialize
vs
to [1 1 1]. If a voxel size is provided in varargin
, update vs
accordingly.
- Initialize
s
to 1. If a step size is provided in varargin
, update s
and scale vs
by s
.
- Call the function
VLFLofVMdelaunay
with parameters V
, vs
, and s
to obtain the solid geometry and Delaunay tetrahedron model.
- 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