cadquery
cadquery copied to clipboard
Which options for show_object?
Hi,
show_object
enables to set colors on objects, but I don't find information on other options. Where can I find the full list please? For example, I would like to use dotted or dashed lines, or different line thickness - for debugging, I project 2D drawings on a wall.
show_object
is implemented by the execution environment (CQ-editor, jupyter-cadquery, etc), and so the options supported can vary. For CQ-editor, I believe only color and alpha options are available.
Reference: https://github.com/CadQuery/CQ-editor/pull/127/files
For those interested in using CQ-editor, here is an example that works for me:
show_object(s, options={"alpha" : 0.25})
It would be great typing stubs for show_object
could be provided to help linters and editors.