Hi again,
The env_DRAW.sh script contains a set of environment variables that has to > be set up before you can use OCC. You can copy/paste the content of this > file to your .bash_profile. The most important one is the CSF_GraphicShr, > that points to the OCC OpenGL lib, and enables the 3D display. > Ok I had already something equivalen in my .zshrc (I like this shell better than bash ;-), and CSF_GraphicShr is set correctly. The best way is certainly to launch this python script from the > ./Tools/InteractiveViewer directory. Do you have any difficulty to get it > run? > It's ok the basic example works (a part from the Zoom window which is apparently not implemented or not wrapped, right? I get the following message: >> AttributeError: 'Viewer3d' object has no attribute 'Zoom_Window' > Weird, since you followed the instructions available on the PAF tutorial > (from the wiki). Before you go and test PAF, I suggest you shoud first check > that pythonOCC works fine. In the /src/unittest directory, there are 3 sets > of unittests: occ_unittest (test of the basic features), paf_unittest (for > PAF) and topology_unittest (topology/geometry handling). Run each of these > scripts and be sure that they all pass: > python occ_unittest.py > python paf_unittest.py > python topology_unittest.py > Actually the paf unit test raise a seg fault error (the two others run just fine): see the output file attached. One more thing I forgot to tell. After installing pythonOcc, the PAF module was missing in the __all__ list in dist-packages/OCC/__init__.py. I had to ad it manually. cheers, Loïc
unittest.output
Description: Binary data
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users