diff --git a/CMakeLists.txt b/CMakeLists.txt index 5413eec..b259f06 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ set(VTK_COMPONENTS VTK::IOGeometry VTK::IOXML VTK::FiltersModeling + VTK::FiltersPoints VTK::vtksys) set(ENABLE_VIEWER OFF CACHE BOOL "Enable the 3D viewer, depends on Qt.") if(ENABLE_VIEWER) diff --git a/src/main.cc b/src/main.cc index 6d54bcb..edb10b0 100644 --- a/src/main.cc +++ b/src/main.cc @@ -15,6 +15,7 @@ #include #include #include +#include #ifdef USE_VIEWER #include @@ -82,8 +83,11 @@ int main(int argc, char **argv) { vtkNew dihedralAnglesFilter; dihedralAnglesFilter->SetInputConnection(project->GetOutputPort()); + vtkNew pointSmoothingFilter; + pointSmoothingFilter->SetInputConnection(dihedralAnglesFilter->GetOutputPoort()); + vtkNew writer; - writer->SetInputConnection(dihedralAnglesFilter->GetOutputPort()); + writer->SetInputConnection(pointSmoothingFilter->GetOutputPort()); writer->SetDataModeToAscii(); writer->SetFileName("out.vtu"); writer->Write();