- Timestamp:
- 11/16/09 15:47:52 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgUtil/TriStrip_tri_stripper.h
r9637 r10755 3 3 ////////////////////////////////////////////////////////////////////// 4 4 // 5 // Copyright (C) 2002 Tanguy Fautr é.5 // Copyright (C) 2002 Tanguy Fautrᅵ. 6 6 // 7 7 // This software is provided 'as-is', without any express or implied … … 22 22 // 3. This notice may not be removed or altered from any source distribution. 23 23 // 24 // Tanguy Fautr é24 // Tanguy Fautrᅵ 25 25 // softdev@pandora.be 26 26 // … … 204 204 typedef std::vector<primitives> primitives_vector; 205 205 206 struct triangles_indices_error { };207 208 209 206 // constructor/initializer 210 207 inline tri_stripper(const indices & TriIndices); … … 215 212 216 213 // Stripper 217 void Strip(primitives_vector * out_pPrimitivesVector); // throw triangles_indices_error();214 bool Strip(primitives_vector * out_pPrimitivesVector); 218 215 219 216 private: … … 233 230 void InitTriGraph(); 234 231 void InitTriHeap(); 235 voidStripify();232 bool Stripify(); 236 233 void AddLeftTriangles(); 237 234 … … 243 240 triangle_strip FindBestStrip(); 244 241 triangle_strip ExtendTriToStrip(const size_t StartTriPos, const triangle_strip::start_order StartOrder); 245 voidBuildStrip(const triangle_strip TriStrip);242 bool BuildStrip(const triangle_strip TriStrip); 246 243 void AddIndice(const indice i); 247 244 void AddIndiceToCache(const indice i, bool CacheHitCount = false);
