How to set Wireframe Mode for a Selection of Objects Only? #81
-
|
This is related to Discussion#20, in that I am interested in making an object transparent. The Wireframe mode is perfectly fine for that. But, all the examples only show how to set everything to wireframe mode. Is there a way that I have not found yet how to set only certain meshes to wireframe mode? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
There is no way to do it at the scene initialization for now ... It shouldn't be too difficult to make it possible at initialization time 🤔. like adding a Generally speaking, more display options should be put in |
Beta Was this translation helpful? Give feedback.
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
optionsdictionnary of the instance ofmadcad.displays.SolidDisplaydisplaying the mesh.It shouldn't be too difficult to make it possible at initialization time 🤔. like adding a
display_facesattribute tomesh.optionsthat is passed toSolidDisplaywhen 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