Show
Ignore:
Timestamp:
11/16/09 15:47:52 (4 years ago)
Author:
robert
Message:

Removed usaged of throw and catch to enable better compatibility with embedded systems that don't support C++ exceptions efficiently.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgUtil/TriStrip_tri_stripper.h

    r9637 r10755  
    33////////////////////////////////////////////////////////////////////// 
    44// 
    5 //  Copyright (C) 2002 Tanguy Fautré. 
     5//  Copyright (C) 2002 Tanguy Fautrï¿œ. 
    66// 
    77//  This software is provided 'as-is', without any express or implied 
     
    2222//  3. This notice may not be removed or altered from any source distribution. 
    2323// 
    24 //  Tanguy Fautré 
     24//  Tanguy Fautrï¿œ 
    2525//  softdev@pandora.be 
    2626// 
     
    204204    typedef std::vector<primitives> primitives_vector; 
    205205 
    206     struct triangles_indices_error { }; 
    207  
    208  
    209206    // constructor/initializer 
    210207    inline tri_stripper(const indices & TriIndices); 
     
    215212 
    216213    // Stripper 
    217     void Strip(primitives_vector * out_pPrimitivesVector);    // throw triangles_indices_error(); 
     214    bool Strip(primitives_vector * out_pPrimitivesVector);  
    218215 
    219216private: 
     
    233230    void InitTriGraph(); 
    234231    void InitTriHeap(); 
    235     void Stripify(); 
     232    bool Stripify(); 
    236233    void AddLeftTriangles(); 
    237234 
     
    243240    triangle_strip FindBestStrip(); 
    244241    triangle_strip ExtendTriToStrip(const size_t StartTriPos, const triangle_strip::start_order StartOrder); 
    245     void BuildStrip(const triangle_strip TriStrip); 
     242    bool BuildStrip(const triangle_strip TriStrip); 
    246243    void AddIndice(const indice i); 
    247244    void AddIndiceToCache(const indice i, bool CacheHitCount = false);