From 2707079c4e6c29152042f8e43e7a1201c1f6f326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hajo=20Nils=20Krabbenho=CC=88ft?= Date: Sun, 20 Sep 2015 23:10:11 +0200 Subject: [PATCH] introduce combind and retraction polygon types --- plugins/CuraEngineBackend/LayerData.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/plugins/CuraEngineBackend/LayerData.py b/plugins/CuraEngineBackend/LayerData.py index 6634867da2..c1c4dc6536 100644 --- a/plugins/CuraEngineBackend/LayerData.py +++ b/plugins/CuraEngineBackend/LayerData.py @@ -117,9 +117,20 @@ class Layer(): return result def createMesh(self): + return self.createMeshOrJumps(True) + + def createJumps(self): + return self.createMeshOrJumps(False) + + def createMeshOrJumps(self, make_mesh): builder = MeshBuilder() for polygon in self._polygons: + if make_mesg and (polygon.type == Polygon.MoveCombingType or polygon.type == Polygon.MoveRetractionType): + continue + if not make_mesg and not (polygon.type == Polygon.MoveCombingType or polygon.type == Polygon.MoveRetractionType): + continue + poly_color = polygon.getColor() points = numpy.copy(polygon.data) @@ -175,6 +186,8 @@ class Polygon(): SkirtType = 5 InfillType = 6 SupportInfillType = 7 + MoveCombingType = 8 + MoveRetractionType = 9 def __init__(self, mesh, type, data, line_width): super().__init__()