Hello, everyone: I could use some assistance. I know little about swig and subtle python/c++ binding details, but I suspect some subtle thing I'm doing wrong is kicking my butt.
I am getting 'hard crashes' when I attempt to store object proxies into a list. Attached is an example script. in the script, I do the following steps: (1) create a box (2) dump the topology, using a function that will print the object tree-- solid, then faces, then wires, then edges. this works (3) iterate through the box finding the faces, and print them out one at a time. this also works (4) use the same code as (3), but instead of directly using the objects, put them into a list, and return them (5) attempt to loop through the list, dumping the them exactly as in (4). in step 5, i get a hard crash every time. it seems like the object proxies are going out of scope or something. I'm completely lost. Can anyone else duplicate these results, and/or tell me if i'm doing something obviously wrong? Platform: windows xp occ version 6.3.0 pyocc version wo0.2 ( from prebuilt binaries ) as always help is appreciated.
test.py
Description: Binary data
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users