mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 00:45:55 +08:00
Extra hull area now matches the assumptions in the rest of the code
It's now also correct according to the original documentation. CURA-435
This commit is contained in:
parent
24950627dc
commit
e034e3f9e1
@ -47,7 +47,7 @@ class ConvexHullJob(Job):
|
|||||||
|
|
||||||
# Then, do a Minkowski hull with a simple 1x1 quad to outset and round the normal convex hull.
|
# Then, do a Minkowski hull with a simple 1x1 quad to outset and round the normal convex hull.
|
||||||
# This is done because of rounding errors.
|
# This is done because of rounding errors.
|
||||||
hull = hull.getMinkowskiHull(Polygon(numpy.array([[-1, -1], [-1, 1], [1, 1], [1, -1]], numpy.float32)))
|
hull = hull.getMinkowskiHull(Polygon(numpy.array([[-0.5, -0.5], [-0.5, 0.5], [0.5, 0.5], [0.5, -0.5]], numpy.float32)))
|
||||||
|
|
||||||
profile = Application.getInstance().getMachineManager().getWorkingProfile()
|
profile = Application.getInstance().getMachineManager().getWorkingProfile()
|
||||||
if profile:
|
if profile:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user