Re: [Pythonocc-users] OCAF adventures

2009-04-21 Thread Thomas Paviot
Bryan Cole a écrit : > Hi, > Hi Bryan, > I'm in the process of writing a simple OCAF document browser. I can > browse the TDF_Label tree OK, but accessing the attributes is proving > tricky. Mostly, the problem is getting data out of OCC types back to > python. > > Can anyone suggest how to ge

Re: [Pythonocc-users] OCAF adventures

2009-04-20 Thread Thomas Paviot
Jelle Feringa a écrit : >> I realize I wrote something that is not exactly true: all Swig files, >> excepted Visualization and Misc, are generated from the >> SWIG_generator.py script. > > Just to understand this right: > so how did you set the __hash__ overloader that need to be set to > a la

Re: [Pythonocc-users] OCAF adventures

2009-04-17 Thread Jelle Feringa
> I realize I wrote something that is not exactly true: all Swig files, > excepted Visualization and Misc, are generated from the > SWIG_generator.py script. Just to understand this right: so how did you set the __hash__ overloader that need to be set to a large number `manually`? do you

Re: [Pythonocc-users] OCAF adventures

2009-04-17 Thread Thomas Paviot
Thomas Paviot a écrit : > Bryan Cole a écrit : > >> Hi, >> >> > > Hi Bryan, > > >> I'm in the process of writing a simple OCAF document browser. I can >> browse the TDF_Label tree OK, but accessing the attributes is proving >> tricky. Mostly, the problem is getting data out of OCC typ

Re: [Pythonocc-users] OCAF adventures

2009-04-16 Thread Thomas Paviot
Bryan Cole a écrit : > Hi, > Hi Bryan, > I'm in the process of writing a simple OCAF document browser. I can > browse the TDF_Label tree OK, but accessing the attributes is proving > tricky. Mostly, the problem is getting data out of OCC types back to > python. > > Can anyone suggest how to ge

Re: [Pythonocc-users] OCAF adventures

2009-04-14 Thread Jelle Feringa
> I think there's a lot to be done for OCAF. Absolutely. The API though doesnt seem to have share the coherence of the BRep* API though, which is a pity. I agree that we need to focus on OCAF, since it'll provide true rapid prototyping capabilities for pythonOCC. > If I can understand the > w

Re: [Pythonocc-users] OCAF adventures

2009-04-14 Thread Bryan Cole
> > TCollection_ExtendedString.ToExtString() should do that though it > seems that Standard_ExtString() isn't wrapped. > That's why a pointer is returned that you can't access. I found a way round this by converting it to a TCollection_AsciiString (which will accept an ExtendedString in it's c

Re: [Pythonocc-users] OCAF adventures

2009-04-14 Thread Jelle Feringa
> I'm in the process of writing a simple OCAF document browser. I can > browse the TDF_Label tree OK, but accessing the attributes is proving > tricky. Mostly, the problem is getting data out of OCC types back to > python. > > Can anyone suggest how to get the content out of a > TCollection.TCollec