ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/SHAPES/RigidBody.cpp
(Generate patch)

Comparing trunk/SHAPES/RigidBody.cpp (file contents):
Revision 1281 by chrisfen, Mon Jun 21 13:38:55 2004 UTC vs.
Revision 1286 by chrisfen, Tue Jun 22 20:38:04 2004 UTC

# Line 321 | Line 321 | void RigidBody::calcRefCoords( ) {
321    //calculate the proper rotation matrix
322    transposeMat3(pAxisMat, pAxisRotMat);
323    
324 <  for (i=0; i<myAtoms.size(); i++){
325 <    getAtomPos(test, i);
326 <    printf("%d\t%d\t%d\n",test[0],test[1],test[2]);
327 <  }
328 <    
324 >  
325    //rotate the rigid body to the principle axis frame
326    for (i = 0; i < myAtoms.size(); i++) {
327      matVecMul3(pAxisRotMat, refCoords[i].vec, refCoords[i].vec);
328      myAtoms[i]->setPos(refCoords[i].vec);
329    }
334  
335  for (i=0; i<myAtoms.size(); i++){
336    getAtomPos(test,i);
337    printf("%d\t%d\t%d\n",test[0],test[1],test[2]);
338  }
330    
331    identityMat3(iMat);
332    setA(iMat);
# Line 545 | Line 536 | double RigidBody::getAtomEps(int index){
536    return myAtoms[index]->getEps();
537    
538   }
539 +
540 + char *RigidBody::getAtomType(int index){
541 +  
542 +  return myAtoms[index]->getType();
543 +  
544 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines