 Timestamp:
 03/21/12 18:36:20 (4 years ago)
 Files:

 1 modified
Legend:
 Unmodified
 Added
 Removed

OpenSceneGraph/trunk/src/osgPlugins/fbx/WriterCompareTriangle.cpp
r12584 r13041 2 2 3 3 WriterCompareTriangle::WriterCompareTriangle(const osg::Geode& geode, 4 unsigned int nbVertices) 5 : geode(geode) 6 { 4 unsigned int nbVertices) 5 : geode(geode) 6 { 7 7 cutscene(nbVertices, geode.getDrawable(0)>asGeometry()>getBound()); 8 8 } 9 9 10 bool 11 WriterCompareTriangle::operator()(const std::pair<Triangle, int>& t1, 10 bool 11 WriterCompareTriangle::operator()(const std::pair<Triangle, int>& t1, 12 12 const std::pair<Triangle, int>& t2) const 13 13 { … … 36 36 WriterCompareTriangle::setMaxMin(unsigned int& nbVerticesX, 37 37 unsigned int& nbVerticesY, 38 unsigned int& nbVerticesZ) const 38 unsigned int& nbVerticesZ) const 39 39 { 40 40 static const unsigned int min = 1; … … 116 116 yMin, 117 117 zMin, 118 xMax, 118 xMax, 119 119 yMax, 120 120 zMax)); … … 130 130 } 131 131 132 int 133 WriterCompareTriangle::inWhichBox(const osg::Vec3::value_type x, 132 int 133 WriterCompareTriangle::inWhichBox(const osg::Vec3::value_type x, 134 134 const osg::Vec3::value_type y, 135 135 const osg::Vec3::value_type z) const … … 137 137 for (unsigned int i = 0; i < boxList.size(); ++i) 138 138 { 139 if (x >= boxList[i].xMin() && 139 if (x >= boxList[i].xMin() && 140 140 x < boxList[i].xMax() && 141 141 y >= boxList[i].yMin() &&