fix bbox constant margin

This commit is contained in:
Martin Pernollet 2017-01-29 15:50:33 +01:00
parent 26cb04f037
commit 39aff66009
1 changed files with 3 additions and 3 deletions

View File

@ -274,11 +274,11 @@ public class BoundingBox3d {
public BoundingBox3d margin(float margin) { public BoundingBox3d margin(float margin) {
BoundingBox3d b = new BoundingBox3d(); BoundingBox3d b = new BoundingBox3d();
b.xmax = xmax + margin; b.xmax = xmax + margin;
b.xmin = xmin + margin; b.xmin = xmin - margin;
b.ymax = ymax + margin; b.ymax = ymax + margin;
b.ymin = ymin + margin; b.ymin = ymin - margin;
b.zmax = zmax + margin; b.zmax = zmax + margin;
b.zmin = zmin + margin; b.zmin = zmin - margin;
return b; return b;
} }