Jelle thanks for clarifying this, however I was not talking about selecting
2 different topologies, but selecting same face for example over and over
again. Each time different object gets returned by
display.GetSelectedShape(), which is also printed on the console. However,
hash function
of these 2 different objects does return the same hash.

Thanks :)
Milos

On Thu, Mar 8, 2012 at 7:29 PM, Milos Davidovic <milo...@gmail.com> wrote:

> 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