cadquery icon indicating copy to clipboard operation
cadquery copied to clipboard

Which options for show_object?

Open lalebarde opened this issue 4 years ago • 3 comments

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.

lalebarde avatar May 03 '20 07:05 lalebarde

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

jmwright avatar May 04 '20 19:05 jmwright

For those interested in using CQ-editor, here is an example that works for me:

show_object(s, options={"alpha" : 0.25})

xpe avatar Feb 09 '24 21:02 xpe

It would be great typing stubs for show_object could be provided to help linters and editors.

zbynekwinkler avatar Feb 16 '24 10:02 zbynekwinkler