-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Small optimizations and fixes in PCLVisualizer #2112
Conversation
Improve performance, fix compilation issues
Thanks. Could you also clarify these guards |
I added this guard, because in one of the recent VTK commits (somewhere in September/October) the function was removed (it was not defined in OpenGL2 at all, it had empty body) Update: it was not removed, but marked as deprecated |
visualization/src/pcl_visualizer.cpp
Outdated
size_t i; | ||
for (i = 0; i < point_cloud->points.size (); ++i) | ||
poly_points->InsertPoint (i, point_cloud->points[i].x, point_cloud->points[i].y, point_cloud->points[i].z); | ||
for (size_t i = 0; i < point_cloud->points.size (); ++i) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New line before bracket
@@ -293,7 +294,7 @@ namespace pcl | |||
/** \brief Disables the Orientatation Marker Widget so it is removed from the renderer */ | |||
void | |||
removeOrientationMarkerWidgetAxes (); | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we add some trailing spaces here?
visualization/src/pcl_visualizer.cpp
Outdated
@@ -4079,7 +4085,7 @@ pcl::visualization::PCLVisualizer::renderViewTesselatedSphere ( | |||
|
|||
poses.push_back (pose_view); | |||
|
|||
} | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation here seemed correct. Having two }
in consecutive lines with no indentation doesn't. What happened exactly?
visualization/src/pcl_visualizer.cpp
Outdated
@@ -3979,7 +3985,7 @@ pcl::visualization::PCLVisualizer::renderViewTesselatedSphere ( | |||
triangle->GetPoints ()->GetPoint (1, p1); | |||
triangle->GetPoints ()->GetPoint (2, p2); | |||
visible_area += vtkTriangle::TriangleArea (p0, p1, p2); | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also looks like a mistake. The indentation was similar to the opening bracket, before the change.
This is not exactly a refactoring, but more like a code style cleanup. I'll probably change the commit message to that if it's ok. |
Changing the status back to "waiting feedback" because there's still two comments of my review left to be addressed. |
handle VTK legacy function (follow up to #2112)
Improve performance, fix compilation issues
Finally, I have found time to split my last pull request in several parts.