-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Painting faces instead of vertices for meshes #1087
Comments
Mesh is colored by vertices in open3d. To support "pure-color face", we can create 3 vertices for each triangle, and assign the same color to all 3 vertices for each triangle. That is, we'll end up with |
@yxlao The problem with this approach is that it then isn't a triangle mesh anymore, but a triangle soup. Hence, algorithms like filtering will not work as expected. We should consider facet colors in our new design of the geometry classes. |
What @yxlao proposes does work in fact, but as @griegler points out the mesh's triangles are no longer connected. Still, it's the only fix at the moment and should be enough for what I'm trying to do.
|
@griegler Right, this will become a triangle soup. So it's a temporary workaround. |
This feature is planned for 0.12 release. |
Is there any news on this? For me this makes open3d unusable for my use case. |
@errissa is this available now? |
This is available now. The visualizer supports per-face colors. However, only |
@errissa, Is there a python binding for SetTriangleColors? |
@andy-beer
|
@errissa Thanks for the info! However I found open3d.geometry.TriangleMesh has no property named 'triangle' as indicated here http://www.open3d.org/docs/release/python_api/open3d.geometry.TriangleMesh.html# Any ideas? |
The property The comment refers to a |
Is your feature request related to a problem? Please describe.
Currently, it's only possible to colour meshes via the
vertex_colors
attribute. However, this may introduces artifacts due to interpolation between the 3 points of a face if the colour source is related to faces instead of vertices (as a Blender's material).Describe the solution you'd like
It would be great to have the possibility to set the colour for faces along with vertices (two different modes maybe?).
Describe alternatives you've considered
As the issue is related with the size of the faces, subdividing the mesh's triangles reduces its magnitude but also increases computation.
The text was updated successfully, but these errors were encountered: