mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 17:45:58 +08:00
fix frustum for off-bed origins
This commit is contained in:
parent
559173c2a1
commit
a1e37803f7
@ -342,6 +342,8 @@ BoundingBoxf3 Bed3D::calc_extended_bounding_box() const
|
|||||||
// Reset the build volume Z, we don't want to zoom to the top of the build volume if it is empty.
|
// Reset the build volume Z, we don't want to zoom to the top of the build volume if it is empty.
|
||||||
out.min.z() = 0.0;
|
out.min.z() = 0.0;
|
||||||
out.max.z() = 0.0;
|
out.max.z() = 0.0;
|
||||||
|
// extend to origin in case origin is off bed
|
||||||
|
out.merge(m_axes.get_origin());
|
||||||
// extend to contain axes
|
// extend to contain axes
|
||||||
out.merge(m_axes.get_origin() + m_axes.get_total_length() * Vec3d::Ones());
|
out.merge(m_axes.get_origin() + m_axes.get_total_length() * Vec3d::Ones());
|
||||||
#if ENABLE_WORLD_COORDINATE
|
#if ENABLE_WORLD_COORDINATE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user