R: [wx-dev] DXF-OpenGL (dxfrenderer) bug/enhancement

Baldassarre Cesarano baldassarre.cesarano at eunics.it
Wed Mar 28 00:53:29 PDT 2007


I'm sorry but at the moment I not have a full and free access to Internet.
However the modifications are truly simplest! (2 lines!)

Baldo

-----Messaggio originale-----
Da: Vadim Zeitlin [mailto:vadim at wxwindows.org] 
Inviato: martedì 27 marzo 2007 19.37
A: wx-dev at lists.wxwidgets.org
Oggetto: Re: [wx-dev] DXF-OpenGL (dxfrenderer) bug/enhancement

On Tue, 27 Mar 2007 10:09:28 +0200 Baldassarre Cesarano
<baldassarre.cesarano at eunics.it> wrote:

BC> Hi to all,
BC> I have found a little bug/enhancement in the file "dxfrenderer.cpp"
BC> ("C:\wxMSW-2.8.3-rc1\samples\opengl\penguin" sample in the
distribution):
BC>  The command dxf "3DFACE" actually is translated as a triangle
BC> ("glBegin(GL_TRIANGLES);") and use only first 3 points instead of 4.
BC>  The correct translation from dxf to opengl is "glBegin(GL_QUADS);" 
BC> using 4 points.
BC>  Then
BC>  1) replace the line (about line 666) "glBegin(GL_TRIANGLES);" ---> 
BC> with
BC> ---> "glBegin(GL_QUADS);"
BC>  2) add the next line before "glEnd();"
BC>   "glVertex3f(face->v3.x, face->v3.y, face->v3.z);"

 Could you please make a patch
(http://www.wxwidgets.org/technote/patches.htm)
with this fix?

 Thanks,
VZ


---------------------------------------------------------------------
To unsubscribe, e-mail: wx-dev-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wx-dev-help at lists.wxwidgets.org







More information about the wx-dev mailing list