diff --git a/Surface_mesher/demo/Surface_mesher/qt4-demo/volume.cpp b/Surface_mesher/demo/Surface_mesher/qt4-demo/volume.cpp index 7e82d6cd30e..c240b840fc7 100644 --- a/Surface_mesher/demo/Surface_mesher/qt4-demo/volume.cpp +++ b/Surface_mesher/demo/Surface_mesher/qt4-demo/volume.cpp @@ -165,9 +165,9 @@ void Volume::display_marchin_cube() status_message("Marching cubes..."); timer.start(); - mc.set_resolution(nx,ny,nz); if(mc.ntrigs()!=0) mc.clean_all(); + mc.set_resolution(nx,ny,nz); mc.init_all(); // set data