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

Geometry colors and line widths in Scene #356

Closed
Styxny opened this issue Mar 25, 2019 · 3 comments
Closed

Geometry colors and line widths in Scene #356

Styxny opened this issue Mar 25, 2019 · 3 comments

Comments

@Styxny
Copy link

Styxny commented Mar 25, 2019

Hey Mike,

I was wondering if there was a way to adjust the color and widths of the lines of a mesh/path in a scene? I have been searching the docs for a while and I am wondering if this is even an option?

-Thanks

@mikedh
Copy link
Owner

mikedh commented Mar 26, 2019

Hey, right now it's not supported in trimesh.viewer.windowed and there is no entity color attribute in path objects, though PR's are welcome!

If I were doing this I'd probably create a Path.entities_color field that was (len(entities), 4), and then add a line_width parameter to the viewer that was passed to glLineWidth in init_gl.

@mikedh
Copy link
Owner

mikedh commented Apr 26, 2019

Added to enhancements list. Thanks for the suggestion!

@mikedh mikedh closed this as completed Apr 26, 2019
@johanjohan
Copy link

@mikedh Hey Mike, I enjoy trimeshing..., has the linewidth in scene ever been added since? Or a way to set the opengl attribute glLineWidth?

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

No branches or pull requests

3 participants