From: paclema Date: Tue, 5 Aug 2014 09:25:50 +0000 (+0200) Subject: Added witbox_platform.stl to view it when you choose a witbox machine X-Git-Tag: 14.09~10^2~1^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7aa53b4807229b8c3f0c13c068cafba0b0742769;p=cura.git Added witbox_platform.stl to view it when you choose a witbox machine --- diff --git a/Cura/gui/sceneView.py b/Cura/gui/sceneView.py index 2913e4b5..d2a2b096 100644 --- a/Cura/gui/sceneView.py +++ b/Cura/gui/sceneView.py @@ -1290,6 +1290,20 @@ class SceneView(openglGui.glGuiPanel): glDisable(GL_TEXTURE_2D) glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) glPopMatrix() + + elif machine.startswith('Witbox'): + if machine not in self._platformMesh: + meshes = meshLoader.loadMeshes(resources.getPathForMesh(machine + '_platform.stl')) + if len(meshes) > 0: + self._platformMesh[machine] = meshes[0] + else: + self._platformMesh[machine] = None + if machine == 'Witbox': + self._platformMesh[machine]._drawOffset = numpy.array([0,-37,145], numpy.float32) + glColor4f(1,1,1,0.5) + self._objectShader.bind() + self._renderObject(self._platformMesh[machine], False, False) + self._objectShader.unbind() else: glColor4f(0,0,0,1) glLineWidth(3) diff --git a/resources/meshes/Witbox_platform.stl b/resources/meshes/Witbox_platform.stl new file mode 100644 index 00000000..7d83c0f4 Binary files /dev/null and b/resources/meshes/Witbox_platform.stl differ