Changeset 13041 for OpenSceneGraph/trunk/src/osgWrappers/deprecated-dotosg/osg/ConvexPlanarOccluder.cpp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgWrappers/deprecated-dotosg/osg/ConvexPlanarOccluder.cpp
r10970 r13041 53 53 int capacity; 54 54 fr[1].getInt(capacity); 55 55 56 56 vertexList.reserve(capacity); 57 57 58 58 fr += 3; 59 59 } … … 82 82 { 83 83 holeList.push_back(ConvexPlanarPolygon()); 84 84 85 85 ConvexPlanarPolygon& cpp = holeList.back(); 86 86 ConvexPlanarPolygon::VertexList& vertexList = cpp.getVertexList(); … … 97 97 int capacity; 98 98 fr[1].getInt(capacity); 99 99 100 100 vertexList.reserve(capacity); 101 101 102 102 fr += 3; 103 103 } … … 142 142 fw.indent() << (*itr)[0] << ' ' << (*itr)[1] << ' ' << (*itr)[2] << std::endl; 143 143 } 144 144 145 145 fw.moveOut(); 146 146 fw.indent()<<"}"<< std::endl; 147 147 } 148 148 149 149 // write out any holes. 150 150 const ConvexPlanarOccluder::HoleList& holeList = cpo.getHoleList(); … … 157 157 fw.indent() << "Hole " << vertexList.size() << "{"<< std::endl; 158 158 fw.moveIn(); 159 159 160 160 for(ConvexPlanarPolygon::VertexList::const_iterator itr=vertexList.begin(); 161 161 itr!=vertexList.end(); … … 164 164 fw.indent() << (*itr)[0] << ' ' << (*itr)[1] << ' ' << (*itr)[2] << std::endl; 165 165 } 166 166 167 167 fw.moveOut(); 168 168 fw.indent()<<"}"<< std::endl; 169 169 } 170 170 171 171 172 172 return true;
