Index: OpenSceneGraph/trunk/src/osgPlugins/3ds/WriterCompareTriangle.cpp
===================================================================
--- OpenSceneGraph/trunk/src/osgPlugins/3ds/WriterCompareTriangle.cpp (revision 11194)
+++ OpenSceneGraph/trunk/src/osgPlugins/3ds/WriterCompareTriangle.cpp (revision 11203)
@@ -1,3 +1,4 @@
 #include "WriterCompareTriangle.h"
+#include <assert.h>
 
 WriterCompareTriangle::WriterCompareTriangle(const osg::Geode & geode, unsigned int nbVertices) : geode(geode) 
@@ -51,5 +52,5 @@
     setMaxMin (nbVerticesX, nbVerticesY, nbVerticesZ); // This function prevent from cutting the scene in too many blocs
 
-    osg::notify(osg::INFO)
+    OSG_NOTIFY(osg::INFO)
         << "Cutting x by " << nbVerticesX << std::endl
         << "Cutting y by " << nbVerticesY << std::endl
@@ -120,14 +121,15 @@
     {
         if (x >= boxList[i].xMin() && 
-            x < boxList[i].xMax() &&
+            x <  boxList[i].xMax() &&
             y >= boxList[i].yMin() &&
-            y < boxList[i].yMax() &&
+            y <  boxList[i].yMax() &&
             z >= boxList[i].zMin() &&
-            z < boxList[i].zMax())
+            z <  boxList[i].zMax())
         {
             return i;
         }
     }
-    throw "Point is not in any blocs";
+    assert(false && "Point is not in any blocs");
+    return 0;
 }
 
