Can’t seem to make it work to duplicate a Rhino.Geometry.Box object… What am I doing wrong?
I tried
new_box=Rhino.Geometry.GeometryBase.Duplicate(old_box) >>> message: "expected GeometryBase, got Box"
and inner_box=outer_box.Duplicate() (didn’t expect that to work, but tried anyway)
(I know I can use the copy module, but I was just curious if that could be avoided)
Gak… Clone? It’s not listed in the RhinoCommon API Box methods, although it does show up under the Plane structure, so if that’s the general method for making a deep copy of a structure in RhinoCommon, good to know. It does seem to work in this case, thanks.
@dale - maybe this needs to be added to the API Box structure doc? Also the word ‘copy’ is missing from the Plane structure doc…