mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
Completely replaced the homebrew Pointf3 class with Eigen Vec3d.
Replaced the unscale macro with a template, implemented templates for unscaling Eigen vectors.
This commit is contained in:
@@ -262,11 +262,10 @@ void GLGizmoRotate::on_render(const BoundingBoxf3& box) const
|
||||
{
|
||||
::glDisable(GL_DEPTH_TEST);
|
||||
|
||||
const Pointf size = box.size().xy();
|
||||
m_center = box.center().xy();
|
||||
m_center = to_2d(box.center());
|
||||
if (!m_keep_radius)
|
||||
{
|
||||
m_radius = Offset + ::sqrt(sqr(0.5f * size(0)) + sqr(0.5f * size(1)));
|
||||
m_radius = Offset + 0.5 * to_2d(box.size()).norm();
|
||||
m_keep_radius = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user