marchingcubes

by Peter Hammer, Martin Helm, Oliver Woodford, SG-Lib Toolbox: SolidGeometry 5.6 - VM/Voxels
, Creation date: 2015-01-22, Last change: 2025-09-14

marching cubes algorithm



See Also: VLFLofVMmarchcube

Example Illustration

 missing image of marchingcubes(x,y,z,c,iso,colors)

Syntax

[V,F,col]=marchingcubes(x,y,z,c,iso,colors)

Input Parameter

x: x of meshgrid
y: y of meshgrid
z: c of meshgrid
c: cubes in voxel model
iso: threshold
colors:

Output Parameter

V: Vertices
F: Faces
col: colors

Examples


V=VMreaddicomdir('AIM_DICOMFILES');
[x,y,z]=meshgrid(1:size(V,1),1:size(V,2),1:size(V,3));
x=single(x); y=single(y); z=single(z);
[VL,FL]=marchingcubes(x,y,z,V,0);

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

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