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

@ -1250,7 +1250,7 @@ Vec3d PartPlate::get_center_origin()
Vec3d origin;
origin(0) = (m_bounding_box.min(0) + m_bounding_box.max(0)) / 2;//m_origin.x() + m_width / 2;
origin(1) = (m_bounding_box.min(0) + m_bounding_box.max(0)) / 2; //m_origin.y() + m_depth / 2;
origin(1) = (m_bounding_box.min(1) + m_bounding_box.max(1)) / 2; //m_origin.y() + m_depth / 2;
origin(2) = m_origin.z();
return origin;