File tree Expand file tree Collapse file tree 3 files changed +4
-28
lines changed Expand file tree Collapse file tree 3 files changed +4
-28
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
11
11
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin )
12
12
13
13
find_package (VTK REQUIRED )
14
- find_package (VTK COMPONENTS vtkCommonCore vtkWrappingTools vtkCommonDataModel )
14
+ find_package (VTK COMPONENTS vtkCommonCore vtkWrappingTools vtkCommonDataModel vtkWrappingPythonCore )
15
15
include (${VTK_USE_FILE} )
16
16
17
17
FIND_PACKAGE (SWIG REQUIRED )
Original file line number Diff line number Diff line change 34
34
#include < set>
35
35
#include < vector>
36
36
#include < stdlib.h>
37
- #include < vtkSmartPointer.h>
38
37
#include < vtkIdList.h>
39
38
#include < vtkPolyData.h>
40
39
#include < vtkCellData.h>
41
40
#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>
65
41
#include < vtkCell.h>
66
42
67
43
typedef struct _Point
Original file line number Diff line number Diff line change 8
8
stl .Update ()
9
9
10
10
normals = vtk .vtkPolyDataNormals ()
11
- normals .SetInput (stl .GetOutput ())
11
+ normals .SetInputConnection (stl .GetOutputPort ())
12
12
normals .ComputeCellNormalsOn ()
13
13
normals .Update ()
14
14
15
15
clean = vtk .vtkCleanPolyData ()
16
- clean .SetInput (normals .GetOutput ())
16
+ clean .SetInputConnection (normals .GetOutputPort ())
17
17
clean .Update ()
18
18
19
19
pd = clean .GetOutput ()
23
23
24
24
ply = vtk .vtkPLYWriter ()
25
25
ply .SetFileName (sys .argv [2 ])
26
- ply .SetInput (tpd )
26
+ ply .SetInputData (tpd )
27
27
ply .Write ()
You can’t perform that action at this time.
0 commit comments