Closed akoen closed 1 year ago
Only when all are named the same. This should be covered in the latest version.
What is your code here?
PartGroup([Part(cq.Solid(s.wrapped)) for s in solids])
where solids is an array of type cadquery.occ_impl.shapes.Solid.
Tested only with the three-cad-viewer pulled in git version of jupyter-cadquery, so if it's fixed in master this can be closed.
The reason I'm rewrapping the solids in a cq.Solid
is because I've found that the isinstance
calls in jupyter-cadquery
can fail to distinguish between cadquery.Solid
and cadquery.occ_impl.Solid
, but I haven't investigated the issue enough yet to warrant make a bug report in jupyter-cadquery
.
oh, you're in Jupyter Cadquery? This is the repo for the VS Code plugin.
Nevertheless, try:
PartGroup([Part(cq.Solid(s.wrapped), name=f"Part_{i}") for i, s in enumerate(solids)])
Ok thank you, I figured this was more relevant to the viewer than to jupyter-cadquery itself, but if it's fixed in the latest version then I'll close.
fyi, when I find time, I will migrate Jupyter CadQuery to use the core of OCP CAD viewer. Will be in the next release together with ipywidgets 8 and jupyterlab 4
The same applies for toggling of edges.