NEW: move selected model to the center of selected plate

Change-Id: I7af49e98e83f5eef690f7d30d10a2cc240046466
This commit is contained in:
tao.jin 2022-09-08 18:55:26 +08:00 committed by Lane.Wei
parent 62da568e0b
commit 31ba41ec3e
11 changed files with 99 additions and 1 deletions

View file

@ -3889,6 +3889,14 @@ void GLCanvas3D::do_flatten(const Vec3d& normal, const std::string& snapshot_typ
do_rotate(""); // avoid taking another snapshot
}
void GLCanvas3D::do_center()
{
if (m_model == nullptr)
return;
m_selection.center();
}
void GLCanvas3D::do_mirror(const std::string& snapshot_type)
{
if (m_model == nullptr)