From a3115bc54879d4ac07d6d23f37a6fef1e3fb13ba Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 3 Mar 2016 16:14:59 +0100 Subject: [PATCH] Also take points on Z=0 with convex hull Contributes to issue CURA-1009. --- cura/ConvexHullJob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/ConvexHullJob.py b/cura/ConvexHullJob.py index 2ffb1e98f7..7ef63e61e8 100644 --- a/cura/ConvexHullJob.py +++ b/cura/ConvexHullJob.py @@ -39,7 +39,7 @@ class ConvexHullJob(Job): mesh = self._node.getMeshData() vertex_data = mesh.getTransformed(self._node.getWorldTransformation()).getVertices() # Don't use data below 0. TODO; We need a better check for this as this gives poor results for meshes with long edges. - vertex_data = vertex_data[vertex_data[:,1]>0] + vertex_data = vertex_data[vertex_data[:,1] >= 0] hull = Polygon(numpy.rint(vertex_data[:, [0, 2]]).astype(int)) # First, calculate the normal convex hull around the points