Commit c6736e93 authored by berenger-bramas's avatar berenger-bramas

Update the octree arranger.

git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/scalfmm/scalfmm/trunk@349 2616d619-271b-44dc-8df4-d4a8f33a7222
parent a8350e28
......@@ -43,19 +43,19 @@ public:
while(partPos.getX() < min.getX()){
partPos.incX(boxWidth);
}
while(partPos.getX() > max.getX()){
while(partPos.getX() >= max.getX()){
partPos.incX(-boxWidth);
}
while(partPos.getY() < min.getY()){
partPos.incY(boxWidth);
}
while(partPos.getY() > max.getY()){
while(partPos.getY() >= max.getY()){
partPos.incY(-boxWidth);
}
while(partPos.getZ() < min.getZ()){
partPos.incZ(boxWidth);
}
while(partPos.getZ() > max.getZ()){
while(partPos.getZ() >= max.getZ()){
partPos.incZ(-boxWidth);
}
iter.data().setPosition(partPos);
......
......@@ -94,19 +94,19 @@ public:
while(partPos.getX() < min.getX()){
partPos.incX(boxWidth);
}
while(partPos.getX() > max.getX()){
while(partPos.getX() >= max.getX()){
partPos.incX(-boxWidth);
}
while(partPos.getY() < min.getY()){
partPos.incY(boxWidth);
}
while(partPos.getY() > max.getY()){
while(partPos.getY() >= max.getY()){
partPos.incY(-boxWidth);
}
while(partPos.getZ() < min.getZ()){
partPos.incZ(boxWidth);
}
while(partPos.getZ() > max.getZ()){
while(partPos.getZ() >= max.getZ()){
partPos.incZ(-boxWidth);
}
iter.data().setPosition(partPos);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment