]> Creatis software - clitk.git/commitdiff
fix vtk mesh opening
authorschaerer <schaerer>
Mon, 26 Jul 2010 09:12:03 +0000 (09:12 +0000)
committerschaerer <schaerer>
Mon, 26 Jul 2010 09:12:03 +0000 (09:12 +0000)
vv/vvMesh.cxx
vv/vvMeshReader.cxx

index ed9d07443250cb4cdb7236e17d1686e79704749f..ee804e9a5843732fed2f03a4d26f7a78a9e327e7 100644 (file)
@@ -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
index 152a9a3860e1758ebf74abb64ee22b0b6f7e0a93..92939bdc0d5442ee5cc6eb27df8af9ae9bb9addd 100644 (file)
@@ -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);