diff --git a/src/main.cc b/src/main.cc index d3c9261..a8c3e52 100644 --- a/src/main.cc +++ b/src/main.cc @@ -130,15 +130,11 @@ int main(int argc, char **argv) { maxDistanceFilter->SetInputConnection(0, geometryFilter->GetOutputPort()); maxDistanceFilter->SetInputConnection(1, polyMeshReader->GetOutputPort()); - if (fit) { - vtkNew writer; - writer->SetInputConnection(dihedralAnglesFilter->GetOutputPort()); - writer->SetDataModeToAscii(); - writer->SetFileName("out.vtu"); - writer->Write(); - } else { - dihedralAnglesFilter->Update(); - } + vtkNew writer; + writer->SetInputConnection(dihedralAnglesFilter->GetOutputPort()); + writer->SetDataModeToAscii(); + writer->SetFileName("out.vtu"); + writer->Write(); maxDistanceFilter->Update(); std::cerr << "Max distance: " << maxDistanceFilter->GetMaxDist() << "\n"