mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
ENH: modify default view to current plate view
Change-Id: I32cecfe20e01011089928e24058c4ff89aca074a Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
71d81ad78b
commit
c7b698f4f1
3 changed files with 15 additions and 3 deletions
|
@ -93,6 +93,9 @@ void Camera::select_view(const std::string& direction)
|
|||
look_at(m_target + m_distance * Vec3d::UnitY(), m_target, Vec3d::UnitZ());
|
||||
else if (direction == "topfront")
|
||||
look_at(m_target - 0.707 * m_distance * Vec3d::UnitY() + 0.707 * m_distance * Vec3d::UnitZ(), m_target, Vec3d::UnitY() + Vec3d::UnitZ());
|
||||
else if (direction == "plate") {
|
||||
look_at(m_target - 0.707 * m_distance * Vec3d::UnitY() + 0.707 * m_distance * Vec3d::UnitZ(), m_target, Vec3d::UnitY() + Vec3d::UnitZ());
|
||||
}
|
||||
}
|
||||
|
||||
double Camera::get_fov() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue