Commit 635fd88a authored by sumpfralle's avatar sumpfralle

improved lightning of the model

 * see http://sourceforge.net/tracker/?func=detail&aid=3015128&group_id=237831&atid=1104178
 * thanks to imyrek!
updated the changelog


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@463 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 31712b66
Version 0.3.0 - UNRELEASED
* added basic support for importing DXF contour files
* added basic support for engravings
* improved performance of toolpath generation
* added a complete commandline interface
* added basic support for importing simple DXF contour files
* added support for engravings
* integrated "help" links pointing to the wiki
* allow non-square profiles for the support grid
* fixed PushCutter
* improved OpenGL lightning (contributed by imyrek)
* added minor fix for PushCutter
Version 0.2.5 - 2010-06-10
* added support bridges for holding the object during cutting
......
......@@ -78,6 +78,9 @@ class Triangle:
if not GL_enabled:
return
GL.glBegin(GL.GL_TRIANGLES)
# use normals to improve lightning (contributed by imyrek)
normal_t = self.normal()
GL.glNormal3f(normal_t.x, normal_t.y, normal_t.z)
GL.glVertex3f(self.p1.x, self.p1.y, self.p1.z)
GL.glVertex3f(self.p2.x, self.p2.y, self.p2.z)
GL.glVertex3f(self.p3.x, self.p3.y, self.p3.z)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment