--- trunk/OOPSE-4/src/visitors/OtherVisitor.cpp 2005/04/15 22:04:00 2204 +++ trunk/OOPSE-4/src/visitors/OtherVisitor.cpp 2005/05/26 22:45:00 2240 @@ -77,10 +77,18 @@ namespace oopse { Snapshot* currSnapshot = info->getSnapshotManager()->getCurrentSnapshot(); for( atomInfo = atomData->beginAtomInfo(i); atomInfo; atomInfo = atomData->nextAtomInfo(i) ) { - currSnapshot->wrapVector(atomInfo->pos); + Vector3d newPos = atomInfo->pos - origin_; + currSnapshot->wrapVector(newPos); + atomInfo->pos = newPos; } } + void WrappingVisitor::update() { + if (useCom_){ + origin_ = info->getCom(); + } + } + const std::string WrappingVisitor::toString() { char buffer[65535]; std::string result;