Skip to content

Commit c17e856

Browse files
committed
Compiling with VTK6
1 parent e509beb commit c17e856

File tree

3 files changed

+4
-28
lines changed

3 files changed

+4
-28
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
1111
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
1212

1313
find_package(VTK REQUIRED)
14-
find_package(VTK COMPONENTS vtkCommonCore vtkWrappingTools vtkCommonDataModel )
14+
find_package(VTK COMPONENTS vtkCommonCore vtkWrappingTools vtkCommonDataModel vtkWrappingPythonCore)
1515
include(${VTK_USE_FILE})
1616

1717
FIND_PACKAGE(SWIG REQUIRED)

ca_smoothing.h

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -34,34 +34,10 @@
3434
#include <set>
3535
#include <vector>
3636
#include <stdlib.h>
37-
#include <vtkSmartPointer.h>
3837
#include <vtkIdList.h>
3938
#include <vtkPolyData.h>
4039
#include <vtkCellData.h>
4140
#include <vtkDoubleArray.h>
42-
#include <vtkFloatArray.h>
43-
#include <vtkDataSet.h>
44-
#include <vtkSphereSource.h>
45-
#include <vtkTriangleFilter.h>
46-
#include <vtkExtractEdges.h>
47-
#include <vtkDataSetMapper.h>
48-
#include <vtkActor.h>
49-
#include <vtkRenderWindow.h>
50-
#include <vtkRenderer.h>
51-
#include <vtkRenderWindowInteractor.h>
52-
#include <vtkIdTypeArray.h>
53-
#include <vtkSelectionNode.h>
54-
#include <vtkSelection.h>
55-
#include <vtkExtractSelection.h>
56-
#include <vtkProperty.h>
57-
#include <vtkVertexGlyphFilter.h>
58-
#include <vtkSTLReader.h>
59-
#include <vtkPLYWriter.h>
60-
#include <vtkPolyDataNormals.h>
61-
#include <vtkCleanPolyData.h>
62-
#include <vtkDataArray.h>
63-
#include <vtkPointData.h>
64-
#include <vtkXMLPolyDataWriter.h>
6541
#include <vtkCell.h>
6642

6743
typedef struct _Point

test_python_wrapper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
stl.Update()
99

1010
normals = vtk.vtkPolyDataNormals()
11-
normals.SetInput(stl.GetOutput())
11+
normals.SetInputConnection(stl.GetOutputPort())
1212
normals.ComputeCellNormalsOn()
1313
normals.Update()
1414

1515
clean = vtk.vtkCleanPolyData()
16-
clean.SetInput(normals.GetOutput())
16+
clean.SetInputConnection(normals.GetOutputPort())
1717
clean.Update()
1818

1919
pd = clean.GetOutput()
@@ -23,5 +23,5 @@
2323

2424
ply = vtk.vtkPLYWriter()
2525
ply.SetFileName(sys.argv[2])
26-
ply.SetInput(tpd)
26+
ply.SetInputData(tpd)
2727
ply.Write()

0 commit comments

Comments
 (0)