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); |
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; |