Browse Source

Do not round convex hull points to nearest int

This might have made sense when convex hulls were not recalculated on
transformation changes but as it is now, we want to be able to specify
0.5 as a valid point for a convex hull.

Contributes to CURA-435
Arjen Hiemstra 9 years ago
parent
commit
51c4e277ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cura/ConvexHullJob.py

+ 1 - 1
cura/ConvexHullJob.py

@@ -40,7 +40,7 @@ class ConvexHullJob(Job):
             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]
-            hull = Polygon(numpy.rint(vertex_data[:, [0, 2]]).astype(int))
+            hull = Polygon(vertex_data[:, [0, 2]])
 
         # First, calculate the normal convex hull around the points
         hull = hull.getConvexHull()