Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that vtk SafeDownCast worked #1245

Merged
merged 1 commit into from
Jun 9, 2015
Merged

Check that vtk SafeDownCast worked #1245

merged 1 commit into from
Jun 9, 2015

Conversation

VictorLamoine
Copy link
Contributor

Fixes #1244

@@ -892,6 +892,8 @@ bool
pcl::visualization::PCLVisualizer::removeActorFromRenderer (const vtkSmartPointer<vtkLODActor> &actor, int viewport)
{
vtkLODActor* actor_to_remove = vtkLODActor::SafeDownCast (actor);
if (!actor_to_remove)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actor is a pointer to vtkLODActor by definition, I don't see how this cast may fail...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True

@VictorLamoine
Copy link
Contributor Author

Ready to be merged on my side

@taketwo
Copy link
Member

taketwo commented May 22, 2015

LGTM

taketwo added a commit that referenced this pull request Jun 9, 2015
@taketwo taketwo merged commit 646c4dd into PointCloudLibrary:master Jun 9, 2015
@VictorLamoine VictorLamoine deleted the visualizer_vtk_fixes branch July 6, 2015 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PCLVisualizer shape handling is bad
2 participants