NEW: move selected model to the center of selected plate

Change-Id: I7af49e98e83f5eef690f7d30d10a2cc240046466
This commit is contained in:
tao.jin
2022-09-29 11:16:43 +08:00
committed by Lane.Wei
parent 62da568e0b
commit 31ba41ec3e
11 changed files with 99 additions and 1 deletions
+8
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)