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
Edge color in MeshVisual #2387
Comments
There is a Lines 166 to 167 in 16d8c5b
Does that handle it? Otherwise I think you'd need to make a LineVisual that has the same vertex points and control those colors. I think that's how it is done in other compound visuals (visuals that use multiple other visuals). There are only the concepts of faces and vertices in a MeshVisual it seems. |
No, i'm asking for the edge colours, not the vertex colors. I thought maybe there was some built-in arg for it. |
There is for other Visuals that uses Meshes like the BoxVisual where it uses a Mesh for the object then another Mesh for the edges apparently: Lines 51 to 57 in 16d8c5b
But then you have Visuals like PolygonVisual that uses a Mesh and a Line: vispy/vispy/visuals/polygon.py Lines 54 to 66 in 16d8c5b
|
Ohh, interesting.. it seems that with the mode = 'lines' it only plots the wireframe if the mesh and then the color arg is the edge color. I'm gonna give it a try, thanks!! |
Hi! I'm plotting a mesh using:
MeshV = scene.visuals.create_visual_node(visuals.MeshVisual)
m1 = MeshV(parent=view.scene)
m1.set_data(vertices=mesh.points(),faces=np.array(mesh.faces()),face_colors=color_array_here)
Now, is there any way to change the colors of the edges in the mesh (the lines connecting the triangle vertices)?
The text was updated successfully, but these errors were encountered: