From: schaerer Date: Mon, 26 Jul 2010 09:12:03 +0000 (+0000) Subject: fix vtk mesh opening X-Git-Tag: v1.2.0~474 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=42e71d936b3f3f8b261bc7668bc724fa4ea5be0b;p=clitk.git fix vtk mesh opening --- 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);