| 173 |  | IAtom(0, 0) += mtmp * r2; | 
| 174 |  | IAtom(1, 1) += mtmp * r2; | 
| 175 |  | IAtom(2, 2) += mtmp * r2; | 
| 176 | + | Itmp += IAtom; | 
| 177 |  |  | 
| 178 |  | //project the inertial moment of directional atoms into this rigid body | 
| 179 |  | if (atoms_[i]->isDirectional()) { | 
| 179 | – | //IAtom += atoms_[i]->getI(); | 
| 180 |  | Itmp += IAtom; | 
| 181 |  | Itmp += refOrients_[i].transpose() * atoms_[i]->getI() * refOrients_[i]; | 
| 182 | < | } else { | 
| 183 | < | Itmp += IAtom; | 
| 184 | < | } | 
| 182 | > | } | 
| 183 |  | } | 
| 184 |  |  | 
| 187 | – | std::cout << Itmp <<std::endl; | 
| 185 |  | //diagonalize | 
| 186 |  | Vector3d evals; | 
| 187 |  | Mat3x3d::diagonalize(Itmp, evals, sU_); |