fix default bed triangles and check_outside & intersect_instance

This commit is contained in:
SoftFever 2023-04-09 22:16:36 +08:00
parent 0d20f13196
commit 87ba3263cc
3 changed files with 15 additions and 10 deletions

View file

@ -346,8 +346,8 @@ public:
const BoundingBox get_bounding_box_crd();
BoundingBoxf3 get_build_volume()
{
Vec3d up_point(m_origin.x() + m_width, m_origin.y() + m_depth, m_origin.z() + m_height);
Vec3d low_point(m_origin.x(), m_origin.y(), m_origin.z());
Vec3d up_point = m_bounding_box.max + Vec3d(0, 0, m_origin.z() + m_height);
Vec3d low_point = m_bounding_box.min + Vec3d(0, 0, m_origin.z());
BoundingBoxf3 plate_box(low_point, up_point);
return plate_box;
}