Re: [Pythonocc-users] Comparate Shapes

2010-04-29 Thread Thomas Paviot
Sorry, I forgot that the selection manager returns an AIS_Shape. You can get the TopoDS_Shape from the AIS_Shape with the help of the Shape() method: s1.IsEqual(sel.Shape()) Thomas 2010/4/29 Vladimir > Hi, Tomas! > Error! > My program fragments: > > 1) Drawing shape > s = self.canva._3dDispl

Re: [Pythonocc-users] Comparate Shapes

2010-04-28 Thread Thomas Paviot
2010/4/29 Vladimir > Hi All! > > After > > s = self.canva._3dDisplay.DisplayColoredShape(w,'YELLOW',False) > s1 = s.GetObject() > print s1 > > I have > > 0xb311180> > > > After selected > sel=self.canva._3dDisplay.selected_shape > print sel > > I have > > at 0xb3164e0> > > > How can I programme