- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/3ds/WriterCompareTriangle.cpp
r12292 r13041 2 2 #include <assert.h> 3 3 4 WriterCompareTriangle::WriterCompareTriangle(const osg::Geode & geode, unsigned int nbVertices) : geode(geode) 4 WriterCompareTriangle::WriterCompareTriangle(const osg::Geode & geode, unsigned int nbVertices) : geode(geode) 5 5 { 6 6 cutscene(nbVertices, geode.getBoundingBox()); 7 7 } 8 8 9 bool 10 WriterCompareTriangle::operator()(const std::pair<Triangle, int> & t1, 9 bool 10 WriterCompareTriangle::operator()(const std::pair<Triangle, int> & t1, 11 11 const std::pair<Triangle, int> & t2) const 12 12 { … … 31 31 WriterCompareTriangle::setMaxMin(unsigned int & nbVerticesX, 32 32 unsigned int & nbVerticesY, 33 unsigned int & nbVerticesZ) const 33 unsigned int & nbVerticesZ) const 34 34 { 35 35 static const unsigned int min = 1; … … 99 99 yMin, 100 100 zMin, 101 xMax, 101 xMax, 102 102 yMax, 103 103 zMax)); … … 113 113 } 114 114 115 int 116 WriterCompareTriangle::inWhichBox(const osg::BoundingBox::value_type x, 115 int 116 WriterCompareTriangle::inWhichBox(const osg::BoundingBox::value_type x, 117 117 const osg::BoundingBox::value_type y, 118 118 const osg::BoundingBox::value_type z) const … … 120 120 for (unsigned int i = 0; i < boxList.size(); ++i) 121 121 { 122 if (x >= boxList[i].xMin() && 122 if (x >= boxList[i].xMin() && 123 123 x < boxList[i].xMax() && 124 124 y >= boxList[i].yMin() &&
