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

Harmonize default representation in PCLVisualizer #1132

Merged
merged 1 commit into from
Mar 14, 2015
Merged

Harmonize default representation in PCLVisualizer #1132

merged 1 commit into from
Mar 14, 2015

Conversation

VictorLamoine
Copy link
Contributor

All shapes are rendered as wire-frame by default; I see no reason why one of the addPlane should not follow that rule.

Reported by Silex: http://www.pcl-users.org/pcl-visualization-PCLVisualizer-addPlane-function-draws-only-boundary-of-the-plane-tp4036992p4037214.html

EDIT: as Sergey suggested; I switched them all to surface, for the line I see no change between wireframe/surface.

@taketwo
Copy link
Member

taketwo commented Feb 5, 2015

I agree that both addPlane() functions should set the same representation. But I would argue that "surface" mode is more appropriate for a plane. I think we'll need more opinions to make a decision.

@VictorLamoine
Copy link
Contributor Author

Adding them as surface is probably more convenient; here are the different shapes:
cube, cylinder, sphere, PolyData, plane, cone, line and circle.

For the circle, this is what is does: (surface on the left, wireframe on the right)
surface_wireframe_circle

So the question is: Wireframe or surface?

@VictorLamoine
Copy link
Contributor Author

Friendly pi(n)g 🐷 @jspricke
Is it ok to switch all shapes from wireframe to surface ?

@taketwo
Copy link
Member

taketwo commented Mar 12, 2015

Victor, I'm not sure I understand the logic behind changing the default representation of all shapes. As far as I understand, the original complaint was only about different plane functions using different representations. Why do we need to change everything else?

@VictorLamoine
Copy link
Contributor Author

The idea is to be consistent; either a shape should be added as wireframe or surface by default.
I don't think it's a good idea to add some shapes in wireframe and others in surface representation.

At the moment one version of the addPlane functions adds a plane in surface representation, while every other shapes are added in wireframe mode.

So we should change the addPlane function to wireframe or switch all the others to surface. I think its more logical to add all shapes in surface representation.

@taketwo
Copy link
Member

taketwo commented Mar 13, 2015

Still don't get why we need consistency between different shapes. Planes are better off with surfaces, yes, but why everything else should be the same?

@VictorLamoine
Copy link
Contributor Author

We don't need consistency, but it would be better.
Everything else should be the same because when the users adds a sphere, he probably expects a volume; not a wire frame.

@taketwo
Copy link
Member

taketwo commented Mar 13, 2015

Ok, what about cubes? I never used it myself, but I would expect that people may use it to outline a detected object, in which case wireframe is more appropriate...

@jspricke
Copy link
Member

+1 for switching all to surface.

@taketwo
Copy link
Member

taketwo commented Mar 14, 2015

Ok, I'll merge then.

@VictorLamoine
Copy link
Contributor Author

Ok, what about cubes? I never used it myself, but I would expect that people may use it to outline a detected object, in which case wireframe is more appropriate...

It really depends on the usage; I used the cube to model a real cube in my robot workspace for example.
And you can use a transparent cube to outline a detected object.

setShapeRenderingProperties is available for those who want to change the rendering anyway.

taketwo added a commit that referenced this pull request Mar 14, 2015
Harmonize default representation in PCLVisualizer
@taketwo taketwo merged commit 24320e5 into PointCloudLibrary:master Mar 14, 2015
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.

3 participants