| 77 |
|
Snapshot* currSnapshot = info->getSnapshotManager()->getCurrentSnapshot(); |
| 78 |
|
|
| 79 |
|
for( atomInfo = atomData->beginAtomInfo(i); atomInfo; atomInfo = atomData->nextAtomInfo(i) ) { |
| 80 |
< |
currSnapshot->wrapVector(atomInfo->pos); |
| 80 |
> |
Vector3d newPos = atomInfo->pos - origin_; |
| 81 |
> |
currSnapshot->wrapVector(newPos); |
| 82 |
> |
atomInfo->pos = newPos; |
| 83 |
|
} |
| 84 |
|
} |
| 85 |
|
|
| 86 |
+ |
void WrappingVisitor::update() { |
| 87 |
+ |
if (useCom_){ |
| 88 |
+ |
origin_ = info->getCom(); |
| 89 |
+ |
} |
| 90 |
+ |
} |
| 91 |
+ |
|
| 92 |
|
const std::string WrappingVisitor::toString() { |
| 93 |
|
char buffer[65535]; |
| 94 |
|
std::string result; |