mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Also take points on Z=0 with convex hull
Contributes to issue CURA-1009.
This commit is contained in:
parent
884de2a8ce
commit
a3115bc548
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class ConvexHullJob(Job):
|
||||||
mesh = self._node.getMeshData()
|
mesh = self._node.getMeshData()
|
||||||
vertex_data = mesh.getTransformed(self._node.getWorldTransformation()).getVertices()
|
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.
|
# 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))
|
hull = Polygon(numpy.rint(vertex_data[:, [0, 2]]).astype(int))
|
||||||
|
|
||||||
# First, calculate the normal convex hull around the points
|
# First, calculate the normal convex hull around the points
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue