ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/visitors/RigidBodyVisitor.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-3.0/src/visitors/RigidBodyVisitor.cpp (file contents):
Revision 1695 by tim, Mon Nov 1 22:52:57 2004 UTC vs.
Revision 1701 by tim, Wed Nov 3 16:08:43 2004 UTC

# Line 5 | Line 5 | void LipidHeadVisitor::visit(RigidBody* rb){
5   namespace oopse {
6  
7   void LipidHeadVisitor::visit(RigidBody* rb){
8 <  double pos[3];
9 <  double u[3] = {0, 0, 1};
10 <  double newVec[3];
8 >  Vector3d pos;
9 >  Vector3d u(0, 0, 1);
10 >  Vector3d newVec;
11    GenericData* data;
12    AtomData* atomData;
13    AtomInfo* atomInfo;
14    bool haveAtomData;
15 <  double rotMatrix[3][3];
15 >  RotMat3x3d rotMatrix;
16  
17    if(!canVisit(rb->getType()))
18      return;
19  
20    pos = rb->getPos();
21 <  rb->getA(rotMatrix);
22 <  matVecMul3(rotMatrix, u, newVec);
23 <
24 <  data = rb->getProperty("ATOMDATA");
21 >  rotMatrix = rb->getA();
22 >  //matVecMul3(rotMatrix, u, newVec);
23 >  newVec = rotMatrix * u;
24 >  
25 >  data = rb->getPropertyByName("ATOMDATA");
26    if(data != NULL){
27  
28      atomData = dynamic_cast<AtomData*>(data);  
# Line 99 | Line 100 | void RBCOMVisitor::visit(RigidBody* rb){
100   void RBCOMVisitor::visit(RigidBody* rb){
101    AtomData* atomData;
102    AtomInfo* atomInfo;
103 <  double pos[3];
103 >  Vector3d pos;
104    
105    pos = rb->getPos();
106    atomInfo = new AtomInfo;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines