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
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);