output the mesh even when analyzing

This commit is contained in:
papush! 2022-03-30 09:37:47 +02:00
parent 4e8488e254
commit 5796a02505

View File

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