2010/4/29 Vladimir <u2...@e66.ru>

> Hi All!
>
> After
>
> s = self.canva._3dDisplay.DisplayColoredShape(w,'YELLOW',False)
> s1 = s.GetObject()
> print s1
>
> I have
>
> <OCC.AIS.AIS_Shape; proxy of <Swig Object of type 'AIS_Shape *' at
> 0xb311180> >
>
> After selected
> sel=self.canva._3dDisplay.selected_shape
> print sel
>
> I have
>
> <OCC.TopoDS.TopoDS_Shape; proxy of <Swig Object of type 'TopoDS_Shape *'
> at 0xb3164e0> >
>
> How can I programmed check, that s1 (or s) and sel is equal objects?
>
> Thanks!
> -
> С уважением, Суханов Владимир Иванович, д.т.н., зав.кафедрой ПСС
> УГТУ-УПИ. Тел: 375-97-18, 8912-628-83-91, 211-51-26
>
>
>
Hi Vladimir,

s1.IsEqual(sel) returns either True or False.

Regards,

Thomas
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to