From 21744a81126e8ed8edf36ffe99e48b1899d4db3a Mon Sep 17 00:00:00 2001 From: papush! Date: Tue, 8 Mar 2022 14:26:23 +0100 Subject: [PATCH] blbllblbl --- src/main.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/main.cc b/src/main.cc index 3d30b6a..e6b7af2 100644 --- a/src/main.cc +++ b/src/main.cc @@ -55,12 +55,16 @@ int main(int argc, char **argv) { removeExternalCellsFilter->SetInputConnection(1, polyMeshReader->GetOutputPort()); - // vtkNew project; - // project->SetInputConnection(0, removeExternalCellsFilter->GetOutputPort()); - // project->SetInputConnection(1, pdReader->GetOutputPort()); + vtkNew surfacePointsFilter; + surfacePointsFilter->SetInputConnection( + removeExternalCellsFilter->GetOutputPort()); + + vtkNew project; + project->SetInputConnection(0, surfacePointsFilter->GetOutputPort()); + project->SetInputConnection(1, polyMeshReader->GetOutputPort()); vtkNew writer; - writer->SetInputConnection(removeExternalCellsFilter->GetOutputPort()); + writer->SetInputConnection(project->GetOutputPort()); writer->SetDataModeToAscii(); writer->SetFileName("out.vtu"); writer->Write();