mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
Cutoff point for convex hull is now a bit below 0 to prevent rounding issues.
CURA-1608
This commit is contained in:
parent
6ec69d523b
commit
77c5d25e70
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
||||||
vertex_data = mesh.getConvexHullTransformedVertices(world_transform)
|
vertex_data = mesh.getConvexHullTransformedVertices(world_transform)
|
||||||
# Don't use data below 0.
|
# Don't use data below 0.
|
||||||
# TODO; We need a better check for this as this gives poor results for meshes with long edges.
|
# 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.01]
|
||||||
|
|
||||||
if len(vertex_data) >= 4:
|
if len(vertex_data) >= 4:
|
||||||
# Round the vertex data to 1/10th of a mm, then remove all duplicate vertices
|
# Round the vertex data to 1/10th of a mm, then remove all duplicate vertices
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue