| 1105 | } |
| 1106 | |
| 1107 | Matrix44 GetModelMatrix (CCObject* pObj) |
| 1108 | { |
| 1109 | |
| 1110 | //Matrix44 matModel = GetTranslationMat(pObj->m_Trans); //matModel.Translate(pObj->m_Trans); |
| 1111 | //matModel=matModel*Matrix33::GetRotationX33( DEG2RAD(-pObj->m_Angs[0]) ); |
| 1112 | //matModel=matModel*Matrix33::GetRotationY33( DEG2RAD(+pObj->m_Angs[1]) ); //IMPORTANT: radian-angle must be negated |
| 1113 | //matModel=matModel*Matrix33::GetRotationZ33( DEG2RAD(-pObj->m_Angs[2]) ); |
| 1114 | //if (!isUnit(pObj->m_Scale)) |
| 1115 | //matModel=GetScale33( Vec3d(pObj->m_Scale.x,pObj->m_Scale.y,pObj->m_Scale.z) )*matModel; |
| 1116 | |
| 1117 | //OPTIMISED_BY_IVO |
| 1118 | //Matrix33diag diag = pObj->m_Scale; //use diag-matrix for scaling |
| 1119 | //Matrix34 t = Matrix34::GetTransMat34(pObj->m_Trans); |
| 1120 | //Matrix33 r33 = Matrix33::GetRotationXYZ33( Deg2Rad(Ang3(+pObj->m_Angs[0],-pObj->m_Angs[1],+pObj->m_Angs[2])) ); |
| 1121 | //Matrix44 matModel = r33*t*diag; //optimised concatenation: m34*t*diag |
| 1122 | |
| 1123 | //matModel = GetTransposed44( matModel); //TODO: remove this after E3 and use Matrix34 instead of Matrix44 |
| 1124 | |
| 1125 | return pObj->m_Matrix; |
| 1126 | } |
| 1127 | |
| 1128 | ////////////////////////////////////////////////////////////////////////// |
| 1129 | // updates all heat sources (read from CGF, kept in the Model) in the given object |
no outgoing calls
no test coverage detected