CadQuery / sphinxcadquery

An extension to visualize CadQuery 3D files in your Sphinx documentation
BSD 3-Clause "New" or "Revised" License
13 stars 4 forks source link

Support for multiple CadQuery volumes #31

Open shimwell opened 3 years ago

shimwell commented 3 years ago

Currently a CadQuery Shape or Compond can be rendered with a single color.

This is fantastic but perhaps it could be expanded to allow a list of Cadquery objects and a list of colors.

This would allow multi color renderings

It appears that cadquery assemblies don't support TJS export at the moment.

So I guess this would involve saving multiple TJS files (one for each cadquery object) then loading them up one after the other and applying a color to the render.

What do people think is this a worthwhile feature

shimwell commented 3 years ago

Here is an example html rendering with two colors and two CadQuery objects https://rawcdn.githack.com/Shimwell/html_files/029d865949439a23bf83be6b2a7698b3734fa2e6/openmc_logo.html

It would be great if something like this could be made with SphinxCadQuery

Peque commented 3 years ago

Yeah, that would be great.

This issue may depend on: https://github.com/CadQuery/cadquery/issues/264