Commit d530ae74 authored by lode_leroy's avatar lode_leroy

fixed opengl representation

git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@47 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent c528bcd1
......@@ -32,10 +32,10 @@ class ToroidalCutter(BaseCutter):
def to_OpenGL(self):
glPushMatrix()
glTranslate(self.center.x, self.center.y, self.center.z)
glutSolidTorus(self.majorradius, self.minorradius, 20, 10)
glutSolidTorus(self.minorradius, self.majorradius, 10, 20)
if not hasattr(self,"_cylinder"):
self._cylinder = gluNewQuadric()
gluCylinder(self._cylinder, self.radius, self.radius, self.height, 20, 10)
gluCylinder(self._cylinder, self.radius, self.radius, self.height, 10, 20)
glPopMatrix()
glPushMatrix()
glTranslate(self.location.x, self.location.y, self.location.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