gumyr / build123d

A python CAD programming library
Apache License 2.0
432 stars 81 forks source link

Add to tips #224

Closed gumyr closed 1 year ago

gumyr commented 1 year ago

Yes. Both use the OpenCascade core and both store this object in a wrapped instance variable. So you could take the wrapped OCCT object from a cq Shape and assign it to a b3d Shape of the same kind. Something like:

import build123d as b3d
b3d_solid = b3d.Solid.make_box(1,1,1)
... some cadquery stuff ...
b3d_solid.wrapped = cq_solid.wrapped
gumyr commented 1 year ago

Complete with a016a789170eef314936a14ef1c35740ae48ed25