mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-01 08:28:42 +03:00
Exclude region judgment before optimizing slice
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user