emreakkaya1 / jmonkeyengine

Automatically exported from code.google.com/p/jmonkeyengine
0 stars 0 forks source link

BoundingBox.merge(Vector3f, float, float, float, BoundingBox) generates NaNs #608

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
As discussed on the forum at

http://hub.jmonkeyengine.org/forum/topic/infinite-extents-in-com-jme3-bounding-b
oundingbox/

an invalid bounding box results in com.jme3.bounding when an infinite bounding 
box (or infinite bounding sphere) is merged with another bounding box.  The 
calculation of the new center in line 535 produces NaN while attempting to 
average +Infinity and -Infinity.

I've attached a patch to deal with this issue.

Original issue reported on code.google.com by sg...@sonic.net on 19 Nov 2013 at 9:15

Attachments:

GoogleCodeExporter commented 8 years ago
Patch applied

Original comment by remy.bou...@gmail.com on 21 Nov 2013 at 10:02