I was able to run the script and had it work great. my OS is XP sp2.

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jelle Feringa
Sent: Tuesday, October 14, 2008 6:56 PM
To: minerva-pythonocc@gna.org
Subject: Re: [Minerva-pythonocc] [Fwd: pythonOCC 3d Viewer bugfix]


Here the scripts halts at line 158:

line 158: frame.Show(); print 'showing WX frame'

Error message:
showing WX frame
*OpenGL interface: SetPixelFormat failed. Error code 2000

I'm running on Vmware, so perhaps its due to my opengl setup. Though I
havent had any problems running OGL programs so far...

Nevertheless, this is wonderful progress ;')

-jelle


On Oct 14, 2008, at 11:57 PM, Cowdens wrote:


wow! that's really sweet! i'll definitely play with it tonight.
 

  _____  

From: Thomas Paviot [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 14, 2008 5:41 PM
To: Dave Cowden; Jelle Feringa
Subject: [Fwd: pythonOCC 3d Viewer bugfix]




-------- Message original -------- 
Sujet :         pythonOCC 3d Viewer bugfix      
Date :  Tue, 14 Oct 2008 23:05:12 +0200 
De :    Thomas Paviot  <mailto:[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>     
Pour :  minerva-pythonocc@gna.org       


Hi all,

I understood the origin of the issue with my previous 3D sample: wxPython
window must be shown before the V3d_Viewer is inited. I attached the script
wxDisplay.py that is able from which I produced the screenshots below. I
also changed my sphere to a torus: it's difficult to see a sphere rotate
around his center unless your eyes are 5cm far from the screen!

Once launched ("python wxDisplay.py"), you can:
- hit "W" key to set display mode to wireframe,
- hit "S" to switch to shaded mode,
- left click and move to rotate,
- middle click and move to pan,
- right click and move to zoom in/out.

The script is quite small: only 150 lines of code, easy to understand and to
extend. Enjoy this sample with your own shapes!

Thomas

<ATT00425.jpg>

<ATT00428.jpg>




_______________________________________________
Minerva-pythonocc mailing list
Minerva-pythonocc@gna.org
https://mail.gna.org/listinfo/minerva-pythonocc

Reply via email to