Hi everybody!

I was wondering, why the following happens. Lets imagine that we draw a
simple cube:

display.DisplayShape(BRepPrimAPI_MakeBox(1,1,1).Shape())

however, when we select this shape we get this as output:
Current selection (single): <OCC.TopoDS.TopoDS_Shape; proxy of <Swig Object
of type 'TopoDS_Shape *' at 0x060BD638> >

and if we select it again:
Current selection (single): <OCC.TopoDS.TopoDS_Shape; proxy of <Swig Object
of type 'TopoDS_Shape *' at 0x060BD650> >

which is a different object.

What can be done to uniquely identify selected shapes? Is there a way to
hash TopoDS shapes for example?

Best regards,
Milos
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to