mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
Account for getConvexHullTransformedVertices returning None
It returns None if there are no vertices.
This commit is contained in:
parent
9784faf181
commit
564a97d5a8
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ class ConvexHullDecorator(SceneNodeDecorator):
|
||||||
# Do not throw away vertices: the convex hull may be too small and objects can collide.
|
# Do not throw away vertices: the convex hull may be too small and objects can collide.
|
||||||
# vertex_data = vertex_data[vertex_data[:,1] >= -0.01]
|
# vertex_data = vertex_data[vertex_data[:,1] >= -0.01]
|
||||||
|
|
||||||
if len(vertex_data) >= 4:
|
if vertex_data and 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
|
||||||
# This is done to greatly speed up further convex hull calculations as the convex hull
|
# This is done to greatly speed up further convex hull calculations as the convex hull
|
||||||
# becomes much less complex when dealing with highly detailed models.
|
# becomes much less complex when dealing with highly detailed models.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue