:(
This commit is contained in:
parent
3108c01028
commit
057ae8100c
@ -12,7 +12,6 @@ set(VTK_COMPONENTS
|
|||||||
VTK::IOGeometry
|
VTK::IOGeometry
|
||||||
VTK::IOXML
|
VTK::IOXML
|
||||||
VTK::FiltersModeling
|
VTK::FiltersModeling
|
||||||
VTK::FiltersPoints
|
|
||||||
VTK::vtksys)
|
VTK::vtksys)
|
||||||
set(ENABLE_VIEWER OFF CACHE BOOL "Enable the 3D viewer, depends on Qt.")
|
set(ENABLE_VIEWER OFF CACHE BOOL "Enable the 3D viewer, depends on Qt.")
|
||||||
if(ENABLE_VIEWER)
|
if(ENABLE_VIEWER)
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
#include <vtkXMLUnstructuredGridReader.h>
|
#include <vtkXMLUnstructuredGridReader.h>
|
||||||
#include <vtkXMLUnstructuredGridWriter.h>
|
#include <vtkXMLUnstructuredGridWriter.h>
|
||||||
#include <vtksys/SystemTools.hxx>
|
#include <vtksys/SystemTools.hxx>
|
||||||
#include <vtkPointSmoothingFilter.h>
|
|
||||||
|
|
||||||
#ifdef USE_VIEWER
|
#ifdef USE_VIEWER
|
||||||
#include <vtkCamera.h>
|
#include <vtkCamera.h>
|
||||||
@ -83,11 +82,8 @@ int main(int argc, char **argv) {
|
|||||||
vtkNew<DihedralAnglesFilter> dihedralAnglesFilter;
|
vtkNew<DihedralAnglesFilter> dihedralAnglesFilter;
|
||||||
dihedralAnglesFilter->SetInputConnection(project->GetOutputPort());
|
dihedralAnglesFilter->SetInputConnection(project->GetOutputPort());
|
||||||
|
|
||||||
vtkNew<vtkPointSmoothingFilter> pointSmoothingFilter;
|
|
||||||
pointSmoothingFilter->SetInputConnection(dihedralAnglesFilter->GetOutputPort());
|
|
||||||
|
|
||||||
vtkNew<vtkXMLUnstructuredGridWriter> writer;
|
vtkNew<vtkXMLUnstructuredGridWriter> writer;
|
||||||
writer->SetInputConnection(pointSmoothingFilter->GetOutputPort());
|
writer->SetInputConnection(dihedralAnglesFilter->GetOutputPort());
|
||||||
writer->SetDataModeToAscii();
|
writer->SetDataModeToAscii();
|
||||||
writer->SetFileName("out.vtu");
|
writer->SetFileName("out.vtu");
|
||||||
writer->Write();
|
writer->Write();
|
||||||
|
Loading…
Reference in New Issue
Block a user