def METHOD_NAME(convex_hull_decorator):
    node = SceneNode()
    mb = MeshBuilder()
    mb.addCube(10, 10, 10)
    node.setMeshData(mb.build())
    convex_hull_decorator._getSettingProperty = MagicMock(return_value = 0)
    with patch("UM.Application.Application.getInstance", MagicMock(return_value=mocked_application)):
        convex_hull_decorator.setNode(node)
    mocked_stack = MagicMock()
    mocked_stack.getProperty = MagicMock(return_value=1)
    convex_hull_decorator._global_stack = mocked_stack
    assert convex_hull_decorator._compute2DConvexHull() == Polygon([[5.0, -5.0], [-5.0, -5.0], [-5.0, 5.0], [5.0, 5.0]])