Skip to content

How to set Wireframe Mode for a Selection of Objects Only? #81

Answered by jimy-byerley
GenieTim asked this question in Q&A
Discussion options

You must be logged in to vote

There is no way to do it at the scene initialization for now ...
It is possible to do it at scene's runtime (when already displayed in a window), by changing the options dictionnary of the instance of madcad.displays.SolidDisplay displaying the mesh.

It shouldn't be too difficult to make it possible at initialization time 🤔. like adding a display_faces attribute to mesh.options that is passed to SolidDisplay when loaded into a scene.
So we could write mesh.option(color=vec3(..), display_faces=False)

Generally speaking, more display options should be put in mesh.options, not only transparency

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by GenieTim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants