Commit 971b6b2d authored by lode_leroy's avatar lode_leroy
parent 08284f2b
...@@ -496,7 +496,7 @@ class SimpleGui(Frame): ...@@ -496,7 +496,7 @@ class SimpleGui(Frame):
def resetView(self): def resetView(self):
glMatrixMode(GL_MODELVIEW) glMatrixMode(GL_MODELVIEW)
glLoadIdentity() glLoadIdentity()
glScalef(self.scale,self.scale,self.scale) glScalef(self.scale,self.scale,self.scale)
glRotatef(110,1.0,0.0,0.0) glRotatef(110,1.0,0.0,0.0)
glRotatef(180,0.0,1.0,0.0) glRotatef(180,0.0,1.0,0.0)
...@@ -505,14 +505,14 @@ class SimpleGui(Frame): ...@@ -505,14 +505,14 @@ class SimpleGui(Frame):
def frontView(self): def frontView(self):
glMatrixMode(GL_MODELVIEW) glMatrixMode(GL_MODELVIEW)
glLoadIdentity() glLoadIdentity()
glScalef(self.scale,self.scale,self.scale) glScalef(self.scale,self.scale,self.scale)
glRotatef(-90,1.0,0,0) glRotatef(-90,1.0,0,0)
self.ogl.tkRedraw() self.ogl.tkRedraw()
def backView(self): def backView(self):
glMatrixMode(GL_MODELVIEW) glMatrixMode(GL_MODELVIEW)
glLoadIdentity() glLoadIdentity()
glScalef(self.scale,self.scale,self.scale) glScalef(self.scale,self.scale,self.scale)
glRotatef(-90,1.0,0,0) glRotatef(-90,1.0,0,0)
glRotatef(180,0,0,1.0) glRotatef(180,0,0,1.0)
...@@ -520,7 +520,7 @@ class SimpleGui(Frame): ...@@ -520,7 +520,7 @@ class SimpleGui(Frame):
def leftView(self): def leftView(self):
glMatrixMode(GL_MODELVIEW) glMatrixMode(GL_MODELVIEW)
glLoadIdentity() glLoadIdentity()
glScalef(self.scale,self.scale,self.scale) glScalef(self.scale,self.scale,self.scale)
glRotatef(-90,1.0,0,0) glRotatef(-90,1.0,0,0)
glRotatef(90,0,0,1.0) glRotatef(90,0,0,1.0)
...@@ -528,7 +528,7 @@ class SimpleGui(Frame): ...@@ -528,7 +528,7 @@ class SimpleGui(Frame):
def rightView(self): def rightView(self):
glMatrixMode(GL_MODELVIEW) glMatrixMode(GL_MODELVIEW)
glLoadIdentity() glLoadIdentity()
glScalef(self.scale,self.scale,self.scale) glScalef(self.scale,self.scale,self.scale)
glRotatef(-90,1.0,0,0) glRotatef(-90,1.0,0,0)
glRotatef(-90,0,0,1.0) glRotatef(-90,0,0,1.0)
...@@ -536,7 +536,7 @@ class SimpleGui(Frame): ...@@ -536,7 +536,7 @@ class SimpleGui(Frame):
def topView(self): def topView(self):
glMatrixMode(GL_MODELVIEW) glMatrixMode(GL_MODELVIEW)
glLoadIdentity() glLoadIdentity()
glScalef(self.scale,self.scale,self.scale) glScalef(self.scale,self.scale,self.scale)
self.ogl.tkRedraw() self.ogl.tkRedraw()
......
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