Exclude region judgment before optimizing slice

This commit is contained in:
sunsets
2024-05-20 16:05:53 +08:00
parent 323538586d
commit 13d99fd843
5 changed files with 49 additions and 27 deletions

View File

@@ -888,6 +888,16 @@ const BoundingBoxf3& ModelObject::bounding_box_approx() const
return m_bounding_box_approx;
}
// B66
Polygon ModelInstance::convex_hull_2d()
{
Polygon convex_hull;
{
const Transform3d &trafo_instance = get_matrix();
convex_hull = get_object()->convex_hull_2d(trafo_instance);
}
return convex_hull;
}
// Returns the bounding box of the transformed instances.
// This bounding box is approximate and not snug.
const BoundingBoxf3& ModelObject::bounding_box_exact() const