PointCloudLibrary / PointCloudLibrary/pcl

pcl_mesh_sampling, error : no override found for 'vtkPolyDataMapper'

Open
#1,797 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: stale
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.