Thomas,

In your opinion would compiling pythonOCC against 3.1 give me the
opportunity to import it as a module into Blender and access the OCC
functions? My plan of attack was to get it to import and start by writing
simple exporters to the various cad formats offered by OCC. It is
not necessarily important at this stage to be able to view the results I can
just check the exported file in a CAD software like Rhino.

joel


On Fri, Jan 21, 2011 at 4:44 PM, Thomas Paviot <tpav...@gmail.com> wrote:

> I apologize, I was completely wrong : python27 (and 31) are available
> within fink, as well as PyQt4-X11 for python 2.7. You now have two
> solutions!
>
> Thomas
>
> 2011/1/21 Thomas Paviot <tpav...@gmail.com>
>
> Running wxPython or PyQt on Mac/X11 is a mess. The best way, on MacOSX, is
>> to work with the fink package (qt4-x11 and pyqt4 are available).
>> Unfortunately, python 2.7 is not supported by fink.
>>
>> According to me, the best way to work with pythonOCC and py2.7 is to use
>> the 'X11' backend available in the coming release. You just need to install
>> the python Xlib library (100% pure python, available at
>> http://sf.net/projects/python-xlib). This makes possible to display an
>> OCC 3D window without having any big GUI library to compile (but you will
>> just have poor GUI features). Then, run the code:
>>
>> from OCC.Display.SimpleGui import *
>> set_backend('x') #choose the python-xlib based renderer
>> display, start_display, add_menu, add_function_to_menu = init_display()
>> from OCC.BRepPrimAPI import *
>> s = BRepPrimAPI_MakeCylinder(60, 200)
>> display.DisplayShape(s.Shape())
>> start_display()
>>
>> You'll get the following result (see attached screenshot). It's a
>> pragmatic way to visualize pythonocc outputs.
>>
>> Thomas
>>
>>
>>
>>
>> 2011/1/21 Bill Bedford <bi...@mousa.biz>
>>
>>> On Fri, 21 Jan 2011 14:10:20 +0100, Thomas Paviot wrote:
>>>
>>> > Did you try to get pythonocc compile with 2.7? Your feedback would be
>>> very
>>> > interesting.
>>> >
>>>
>>> PythonOCC compiled OK. The show stopper was Qt-X11. I just couldn't see
>>> how to compile it again a framework Python 2.7.
>>>
>>>
>>> --
>>> Bill Bedford
>>>
>>> "Man is an animal suspended in webs of significance he himself has spun"
>>>
>>>
>>> -- Clifford Geertz
>>>
>>> _______________________________________________
>>> Pythonocc-users mailing list
>>> Pythonocc-users@gna.org
>>> https://mail.gna.org/listinfo/pythonocc-users
>>>
>>
>>
>
> _______________________________________________
> Pythonocc-users mailing list
> Pythonocc-users@gna.org
> https://mail.gna.org/listinfo/pythonocc-users
>
>


-- 
Joel Putnam
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to