--- trunk/SHAPES/GridBuilder.cpp 2004/06/21 13:38:55 1281 +++ trunk/SHAPES/GridBuilder.cpp 2004/06/21 15:10:29 1282 @@ -29,6 +29,8 @@ void GridBuilder::launchProbe(int forceField, vectordoEulerToRotMat(angles, rotX); - + + //start from the reference position + identityMat3(rbMatrix); + rbMol->setA(rbMatrix); + //rotate the rigid body - rbMol->getA(rbMatrix); matMul3(rotX, rbMatrix, rotatedMat); rbMol->setA(rotatedMat); } -void GridBuilder::stepPhi(double increment){ - //zero out the euler angles - for (l=0; l<3; l++) - angles[i] = 0.0; - - //the phi euler angle is for rotation about the z-axis (we use the zxz convention) - angles[0] = increment; - - //obtain the rotation matrix through the rigid body class - rbMol->doEulerToRotMat(angles, rotZ); - - //rotate the rigid body - rbMol->getA(rbMatrix); - matMul3(rotZ, rbMatrix, rotatedMat); - rbMol->setA(rotatedMat); -} - void GridBuilder::printGridFiles(){ ofstream sigmaOut("sigma.grid"); ofstream sOut("s.grid");