From dcc99754b62274d9b0cc743476846218752e0d74 Mon Sep 17 00:00:00 2001 From: papush! Date: Tue, 8 Mar 2022 14:26:23 +0100 Subject: [PATCH] blbllblbl --- src/main.cc | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/main.cc b/src/main.cc index 3d30b6a..938cdf8 100644 --- a/src/main.cc +++ b/src/main.cc @@ -44,10 +44,10 @@ int main(int argc, char **argv) { vtkNew dihedralAnglesFilter; dihedralAnglesFilter->SetInputConnection(tetMeshReader->GetOutputPort()); - vtkNew polyMeshReader; - polyMeshReader->SetFileName(argv[2]); - // vtkNew polyMeshReader; + // vtkNew polyMeshReader; // polyMeshReader->SetFileName(argv[2]); + vtkNew polyMeshReader; + polyMeshReader->SetFileName(argv[2]); vtkNew removeExternalCellsFilter; removeExternalCellsFilter->SetInputConnection(0, @@ -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();