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
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
> 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
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
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
> 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
>
> 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
> 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