chiark / gitweb /
Clean up removed code.
authordaid <daid303@gmail.com>
Tue, 3 Dec 2013 13:48:26 +0000 (14:48 +0100)
committerdaid <daid303@gmail.com>
Tue, 3 Dec 2013 13:48:26 +0000 (14:48 +0100)
Cura/gui/sceneView.py
Cura/util/objectScene.py

index c7dbbb48baea1936ff24eb6e459534a677f0aba2..83a1d76a22cd4480a7b087fe8fa1b800b3672143 100644 (file)
@@ -1329,28 +1329,7 @@ void main(void)
                        glVertex3f(-size[0] / 2, -size[1] / 2+10, 0)
                        glEnd()
 
-               #Cornerpoints for big blue square
-               # v0 = [ size[0] / 2, size[1] / 2, size[2]]
-               # v1 = [ size[0] / 2,-size[1] / 2, size[2]]
-               # v2 = [-size[0] / 2, size[1] / 2, size[2]]
-               # v3 = [-size[0] / 2,-size[1] / 2, size[2]]
-               # v4 = [ size[0] / 2, size[1] / 2, 0]
-               # v5 = [ size[0] / 2,-size[1] / 2, 0]
-               # v6 = [-size[0] / 2, size[1] / 2, 0]
-               # v7 = [-size[0] / 2,-size[1] / 2, 0]
-               #
-               # vList = [v0,v1,v3,v2, v1,v0,v4,v5, v2,v3,v7,v6, v0,v2,v6,v4, v3,v1,v5,v7]
-               # glEnableClientState(GL_VERTEX_ARRAY)
-               # glVertexPointer(3, GL_FLOAT, 3*4, vList)
-
                glDepthMask(False)
-               # glColor4ub(5, 171, 231, 64)
-               # glDrawArrays(GL_QUADS, 0, 4)
-               # glColor4ub(5, 171, 231, 96)
-               # glDrawArrays(GL_QUADS, 4, 8)
-               # glColor4ub(5, 171, 231, 128)
-               # glDrawArrays(GL_QUADS, 12, 8)
-               # glDisableClientState(GL_VERTEX_ARRAY)
 
                polys = profile.getMachineSizePolygons()
                height = profile.getMachineSettingFloat('machine_height')
@@ -1394,55 +1373,6 @@ void main(void)
                                glVertex3f(p[0], p[1], 0)
                        glEnd()
 
-               if machine == 'ultimaker2x':
-
-                       glColor4ub(127, 127, 127, 200)
-                       #if UM2, draw bat-area zone for head. THe head can't stop there, because its bat-area.
-                       #UpperRight
-                       clipWidth = 25
-                       clipHeight = 10
-                       posX = size[0] / 2 - clipWidth
-                       posY = size[1] / 2 - clipHeight
-                       glBegin(GL_QUADS)
-                       glVertex3f(posX, posY, 0)
-                       glVertex3f(posX+clipWidth, posY, 0)
-                       glVertex3f(posX+clipWidth, posY+clipHeight, 0)
-                       glVertex3f(posX, posY+clipHeight, 0)
-                       glEnd()
-                       #UpperLeft
-                       clipWidth = 25
-                       clipHeight = 10
-                       posX = -size[0] / 2
-                       posY = size[1] / 2 - clipHeight
-                       glBegin(GL_QUADS)
-                       glVertex3f(posX, posY, 0)
-                       glVertex3f(posX+clipWidth, posY, 0)
-                       glVertex3f(posX+clipWidth, posY+clipHeight, 0)
-                       glVertex3f(posX, posY+clipHeight, 0)
-                       glEnd()
-                       #LowerRight
-                       clipWidth = 25
-                       clipHeight = 10
-                       posX = size[0] / 2 - clipWidth
-                       posY = -size[1] / 2
-                       glBegin(GL_QUADS)
-                       glVertex3f(posX, posY, 0)
-                       glVertex3f(posX+clipWidth, posY, 0)
-                       glVertex3f(posX+clipWidth, posY+clipHeight, 0)
-                       glVertex3f(posX, posY+clipHeight, 0)
-                       glEnd()
-                       #LowerLeft
-                       clipWidth = 25
-                       clipHeight = 10
-                       posX = -size[0] / 2
-                       posY = -size[1] / 2
-                       glBegin(GL_QUADS)
-                       glVertex3f(posX, posY, 0)
-                       glVertex3f(posX+clipWidth, posY, 0)
-                       glVertex3f(posX+clipWidth, posY+clipHeight, 0)
-                       glVertex3f(posX, posY+clipHeight, 0)
-                       glEnd()
-
                glDepthMask(True)
                glDisable(GL_BLEND)
                glDisable(GL_CULL_FACE)
index 7510a93e493269f2dc5df6fa8a354b632dae9bc5..344e6fc5ac4758b83cc116f564c2c4219b9b90a3 100644 (file)
@@ -222,16 +222,6 @@ class Scene(object):
                area = obj._printAreaHull + obj.getPosition()
                if not polygon.fullInside(area, self._machinePolygons[0]):
                        return False
-               # aMin = numpy.min(area, 0)
-               # aMax = numpy.max(area, 0)
-               # if aMin[0] < -self._machineSize[0] / 2:
-               #       return False
-               # if aMax[0] > self._machineSize[0] / 2:
-               #       return False
-               # if aMin[1] < -self._machineSize[1] / 2:
-               #       return False
-               # if aMax[1] > self._machineSize[1] / 2:
-               #       return False
                #Check the "no go zones"
                for poly in self._machinePolygons[1:]:
                        if polygon.polygonCollision(poly, area):