Xamla / torch-pcl

Point Cloud Library (PCL) bindings for Torch
BSD 3-Clause "New" or "Revised" License
30 stars 7 forks source link

Does not compile with vtk-6.0 #5

Closed uwesterh closed 8 years ago

uwesterh commented 8 years ago

When trying to build troch-plc with vtk-6.0, the compile process ends with an error:

[ 40%] Building CXX object CMakeFiles/pcl.dir/src/xyz.cpp.o
In file included from torch-pcl/src/xyz.cpp:7:0:
torch-pcl/src/mesh_sampling.cpp: In function ‘void sampleMesh(vtkPolyData*, pcl::PointCloud<pcl::PointXYZ>::Ptr, int, float)’:
torch-pcl/src/mesh_sampling.cpp:107:19: error: ‘class vtkTriangleFilter’ has no member named ‘SetInput’
   triangleFilter->SetInput(polydata);
                   ^
make[2]: *** [CMakeFiles/pcl.dir/src/xyz.cpp.o] Fehler 1
andreaskoepf commented 8 years ago

Was indeed changed with vtk-6, see Replacement_of_SetInput.

andreaskoepf commented 8 years ago

https://github.com/Xamla/torch-pcl/commit/4c7e4979b360355383a96ef5a6225ca063089782 should have fixed the compile error.