From 5796a02505c8d646c3552206de499c9cec1d5afa Mon Sep 17 00:00:00 2001 From: papush! Date: Wed, 30 Mar 2022 09:37:47 +0200 Subject: [PATCH] output the mesh even when analyzing --- src/main.cc | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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"