Skip to content

Commit

Permalink
Tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcozzi committed Oct 14, 2015
1 parent 8d8d217 commit 6e97913
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions Source/Core/BoxGeometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,12 @@ define([
//>>includeEnd('debug');

var corner = Cartesian3.multiplyByScalar(dimensions, 0.5, new Cartesian3());
var min = Cartesian3.negate(corner, new Cartesian3());
var max = corner;

var newOptions = {
minimum : min,
maximum : max,
return new BoxGeometry({
minimum : Cartesian3.negate(corner, new Cartesian3()),
maximum : corner,
vertexFormat : options.vertexFormat
};
return new BoxGeometry(newOptions);
});
};

/**
Expand Down Expand Up @@ -159,11 +156,11 @@ define([
if (!defined(boundingBox)) {
throw new DeveloperError('boundingBox is required.');
}
var newOptions = {

return new BoxGeometry({
minimum: boundingBox.minimum,
maximum: boundingBox.maximum
};
return new BoxGeometry(newOptions);
});
};

/**
Expand Down Expand Up @@ -192,11 +189,11 @@ define([
if (!defined(boundingBox)) {
throw new DeveloperError('boundingBox is required.');
}
var newOptions = {

return new BoxGeometry({
minimum : boundingBox.minimum,
maximum : boundingBox.maximum
};
return new BoxGeometry(newOptions);
});
};

/**
Expand Down

0 comments on commit 6e97913

Please sign in to comment.