You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed calculation of eigenvectors of moment of inertia. Provided ability to calculate area-based MOI. Added tool to align eigenvectors of MOI with coordinate system axes.
CMeasureMOITool::CMeasureMOITool(CMainWindow* wnd) : CBasicTool(wnd, "Moment of inertia", CBasicTool::HAS_APPLY_BUTTON)
34
34
{
35
+
m_area = false;
35
36
m_moi.zero();
36
37
m_evec.zero();
37
38
m_eval = vec3d(0,0,0);
38
39
addMat3Property(&m_moi, "moment of inertia:")->setFlags(CProperty::Visible);
39
40
addMat3Property(&m_evec, "eigenvectors of MOI:")->setFlags(CProperty::Visible);
40
41
addVec3Property(&m_eval, "eigenvalues of MOI:")->setFlags(CProperty::Visible);
42
+
addBoolProperty(&m_area, "area");
41
43
42
44
SetInfo("Calculates the moment of inertia of a meshed object or element selection. The MOI is calculated with respect to the center of mass of the selection.");
0 commit comments