From 42e71d936b3f3f8b261bc7668bc724fa4ea5be0b Mon Sep 17 00:00:00 2001 From: schaerer Date: Mon, 26 Jul 2010 09:12:03 +0000 Subject: [PATCH] fix vtk mesh opening --- vv/vvMesh.cxx | 1 - vv/vvMeshReader.cxx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/vv/vvMesh.cxx b/vv/vvMesh.cxx index ed9d074..ee804e9 100644 --- a/vv/vvMesh.cxx +++ b/vv/vvMesh.cxx @@ -58,7 +58,6 @@ void vvMesh::AddMesh(vtkPolyData* p) void vvMesh::ReadFromVTK(const char * filename) { - DD("hello!"); std::string extension=itksys::SystemTools::GetFilenameLastExtension(std::string(filename)); if (extension == ".vtk" || extension== ".VTK") { assert(GetNumberOfMeshes() == 0); ///We assume the object is empty diff --git a/vv/vvMeshReader.cxx b/vv/vvMeshReader.cxx index 152a9a3..92939bd 100644 --- a/vv/vvMeshReader.cxx +++ b/vv/vvMeshReader.cxx @@ -61,7 +61,7 @@ void vvMeshReader::run() vvMesh::Pointer m=vvMesh::New(); m->ReadFromVTK(filename.c_str()); if (vf) m->propagateContour(vf); - m->ComputeMasks(image->GetVTKImages()[0],true); + m->ComputeMasks(image->GetVTKImages()[0],false); //don't extrude the contour result.push_back(m); } else { //Read a Dicom-struct file assert(selected_contours.size() > 0); -- 2.47.1