This commit is contained in:
papush! 2022-03-14 14:34:07 +01:00
parent 3108c01028
commit 057ae8100c
2 changed files with 1 additions and 6 deletions

View File

@ -12,7 +12,6 @@ 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)

View File

@ -15,7 +15,6 @@
#include <vtkXMLUnstructuredGridReader.h>
#include <vtkXMLUnstructuredGridWriter.h>
#include <vtksys/SystemTools.hxx>
#include <vtkPointSmoothingFilter.h>
#ifdef USE_VIEWER
#include <vtkCamera.h>
@ -83,11 +82,8 @@ int main(int argc, char **argv) {
vtkNew<DihedralAnglesFilter> dihedralAnglesFilter;
dihedralAnglesFilter->SetInputConnection(project->GetOutputPort());
vtkNew<vtkPointSmoothingFilter> pointSmoothingFilter;
pointSmoothingFilter->SetInputConnection(dihedralAnglesFilter->GetOutputPort());
vtkNew<vtkXMLUnstructuredGridWriter> writer;
writer->SetInputConnection(pointSmoothingFilter->GetOutputPort());
writer->SetInputConnection(dihedralAnglesFilter->GetOutputPort());
writer->SetDataModeToAscii();
writer->SetFileName("out.vtu");
writer->Write();