:(
This commit is contained in:
parent
3108c01028
commit
057ae8100c
@ -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)
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user