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 1282 by chrisfen, Mon Jun 21 15:10:29 2004 UTC

# Line 320 | Line 320 | void RigidBody::calcRefCoords( ) {
320      
321    //calculate the proper rotation matrix
322    transposeMat3(pAxisMat, pAxisRotMat);
323 +  
324    
325    for (i=0; i<myAtoms.size(); i++){
326 <    getAtomPos(test, i);
327 <    printf("%d\t%d\t%d\n",test[0],test[1],test[2]);
326 >    apos = refCoords[i];
327 >    printf("%f\t%f\t%f\n",apos[0],apos[1],apos[2]);
328    }
329      
330    //rotate the rigid body to the principle axis frame
# Line 333 | Line 334 | void RigidBody::calcRefCoords( ) {
334    }
335    
336    for (i=0; i<myAtoms.size(); i++){
337 <    getAtomPos(test,i);
338 <    printf("%d\t%d\t%d\n",test[0],test[1],test[2]);
337 >    apos = refCoords[i];
338 >    printf("%f\t%f\t%f\n",apos[0],apos[1],apos[2]);
339    }
340    
341    identityMat3(iMat);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines