PointCloudLibrary / PointCloudLibrary/pcl
pcl_mesh_sampling, error : no override found for 'vtkPolyDataMapper'
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 11.1k
- Forks
- 4.7k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 6
Description
Hi~everyone, I'm using PCL and Assimp to convert the STL, IGS, etc file to PCD format file.
Now, use the Assimp could convert the import file to OBJ format, then use the pcl_mesh_sampling to get more point cloud data, and generate a file of PCD format. But, I have a problem about the VTK.
vtkSmartPointer<vtkPolyDataMapper> triangleMapper = vtkSmartPointer<vtkPolyDataMapper>::New();
triangleMapper->SetInputConnection(triangleFilter->GetOutputPort());
triangleMapper->Update();
polydata1 = triangleMapper->GetInput();
These is an error in the triangleMapper->SetInputConnection(triangleFilter->GetOutputPort()), the error information in the vtkOutputWindow is shown below.
Generic Warning: In C:\Build\3rdParty\x86\VTK-7.0.0\Rendering\Core\vtkPolyDataMapper.cxx, line 28
Error: no override found for 'vtkPolyDataMapper'.
And the line 28 code in vtkPolyDataMapper.cxx:
// Return NULL if no override is supplied.
vtkAbstractObjectFactoryNewMacro(vtkPolyDataMapper);
So, who know how to solve this problem?
Thanks all.
Your Environment
- Operating System and version: WIN10 x64
- Compiler: VS 2013
- PCL Version: 1.8.0 All in one
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure in the shown vtkPolyDataMapper::SetInputConnection path with PCL 1.8.0, VTK 7.0.0, Windows 10, and VS 2013. Inspect the VTK object-factory setup around vtkPolyDataMapper.cxx and verify that the pcl_mesh_sampling STL/IGS-to-PCD workflow completes without the “no override found” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100