From 977e2f40f7bccb99798340bc6d96a2bc6a4ca517 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Tue, 29 Jan 2008 08:36:57 +0000 Subject: [PATCH] Fix crash when running the marching cubes algorithm twice. --- Surface_mesher/demo/Surface_mesher/qt4-demo/volume.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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