- DD(mesh->GetNumberOfVerts());
- DD(mesh->GetNumberOfLines());
- DD(mesh->GetNumberOfPolys());
- DD(mesh->GetNumberOfStrips());
-
- // Add on (FIXME) to replace with binary image
- // vtkPolyData* blank = vtkPolyData::New();
- // writer->SetInput(0, blank);
- writer->SetInput(0, mesh);
- roiNames->InsertValue(0, "blank");
- roiAlgorithms->InsertValue(0, "blank");
- roiTypes->InsertValue(0, "ORGAN");
-
- for (unsigned int i = 1; i < numMasks; ++i) {
- // DD(i);
- writer->SetInput(i, reader->GetOutput(i-1));
- std::string theString = reader->GetRTStructSetProperties()->GetStructureSetROIName(i-1);
+ if (GetVerboseFlag()) {
+ std::cout << "Mesh has " << mesh->GetNumberOfLines() << " lines." << std::endl;
+ }
+
+ // Copy previous contours
+ for (unsigned int i = 0; i < numMasks-1; ++i) {
+ writer->SetInput(i, reader->GetOutput(i));
+ std::string theString = reader->GetRTStructSetProperties()->GetStructureSetROIName(i);