- Timestamp:
- 03/11/10 17:53:35 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/3ds/WriterCompareTriangle.cpp
r11194 r11203 1 1 #include "WriterCompareTriangle.h" 2 #include <assert.h> 2 3 3 4 WriterCompareTriangle::WriterCompareTriangle(const osg::Geode & geode, unsigned int nbVertices) : geode(geode) … … 51 52 setMaxMin (nbVerticesX, nbVerticesY, nbVerticesZ); // This function prevent from cutting the scene in too many blocs 52 53 53 osg::notify(osg::INFO)54 OSG_NOTIFY(osg::INFO) 54 55 << "Cutting x by " << nbVerticesX << std::endl 55 56 << "Cutting y by " << nbVerticesY << std::endl … … 120 121 { 121 122 if (x >= boxList[i].xMin() && 122 x < boxList[i].xMax() &&123 x < boxList[i].xMax() && 123 124 y >= boxList[i].yMin() && 124 y < boxList[i].yMax() &&125 y < boxList[i].yMax() && 125 126 z >= boxList[i].zMin() && 126 z < boxList[i].zMax())127 z < boxList[i].zMax()) 127 128 { 128 129 return i; 129 130 } 130 131 } 131 throw "Point is not in any blocs"; 132 assert(false && "Point is not in any blocs"); 133 return 0; 132 134 } 133 135
