Commit c78d94d8 authored by Guillaume Seguin's avatar Guillaume Seguin

Add centeroffset support to gcview

parent 43655cc3
...@@ -96,6 +96,7 @@ class GcodeViewPanel(wxGLPanel): ...@@ -96,6 +96,7 @@ class GcodeViewPanel(wxGLPanel):
continue continue
glPushMatrix() glPushMatrix()
glTranslatef(*(obj.offsets)) glTranslatef(*(obj.offsets))
glTranslatef(*(obj.centeroffset))
glRotatef(obj.rot, 0.0, 0.0, 1.0) glRotatef(obj.rot, 0.0, 0.0, 1.0)
glScalef(*obj.scale) glScalef(*obj.scale)
...@@ -262,6 +263,7 @@ class GCObject(object): ...@@ -262,6 +263,7 @@ class GCObject(object):
def __init__(self, model): def __init__(self, model):
self.offsets = [0, 0, 0] self.offsets = [0, 0, 0]
self.centeroffset = [0, 0, 0]
self.rot = 0 self.rot = 0
self.curlayer = 0.0 self.curlayer = 0.0
self.scale = [1.0, 1.0, 1.0] self.scale = [1.0, 1.0, 1.0]
......
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