65 _minPhys(3, T()), _maxPhys(3, T()), _extend(3, T()),
68 _z(z), _cuboidGeometry(sg.getCuboidGeometry())
72 _extend[0] = _maxPhys[0] - _minPhys[0];
73 _extend[1] = _maxPhys[1] - _minPhys[1];
74 _extend[2] = _maxPhys[2] - _minPhys[2];
75 for (
int i=0; i<6; ++i) {
83 typename std::deque<PARTICLETYPE<T> >::iterator& p,
87 if (p->getPos()[0] > _maxPhys[0]) {
88 p->getPos()[0] -= _extend[0];
90 int C = this->_cuboidGeometry.get_iC(p->getPos()[0], p->getPos()[1], p->getPos()[2], _overlap);
93 else if (p->getPos()[0] < _minPhys[0]) {
94 p->getPos()[0] += _extend[0];
96 int C = this->_cuboidGeometry.get_iC(p->getPos()[0], p->getPos()[1], p->getPos()[2], _overlap);
101 if (p->getPos()[1] > _maxPhys[1]) {
102 p->getPos()[1] -= _extend[1];
104 int C = this->_cuboidGeometry.get_iC(p->getPos()[0], p->getPos()[1], p->getPos()[2], _overlap);
107 else if (p->getPos()[1] < _minPhys[1]) {
108 p->getPos()[1] += _extend[1];
110 int C = this->_cuboidGeometry.get_iC(p->getPos()[0], p->getPos()[1], p->getPos()[2], _overlap);
115 if (p->getPos()[2] > _maxPhys[2]) {
116 p->getPos()[2] -= _extend[2];
118 int C = this->_cuboidGeometry.get_iC(p->getPos()[0], p->getPos()[1], p->getPos()[2], _overlap);
121 else if (p->getPos()[2] < _minPhys[2]) {
122 p->getPos()[2] += _extend[2];
124 int C = this->_cuboidGeometry.get_iC(p->getPos()[0], p->getPos()[1], p->getPos()[2], _overlap);