Show
Ignore:
Timestamp:
03/11/10 17:53:35 (3 years ago)
Author:
robert
Message:

From Sukender, "I had some conflicts when updating but they seem resolved now. Attached files (four files) are against rev. 11200. Changelog:
- Replaced exceptions with assert() or OSG_NOTIFY
- Replaced osg::notify() with OSG_NOTIFY
- Changed braces and tabs to fit OSG coding convention
- Cleaned a few things in code (names, added deallocations upon error)"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/3ds/WriterCompareTriangle.cpp

    r11194 r11203  
    11#include "WriterCompareTriangle.h" 
     2#include <assert.h> 
    23 
    34WriterCompareTriangle::WriterCompareTriangle(const osg::Geode & geode, unsigned int nbVertices) : geode(geode)  
     
    5152    setMaxMin (nbVerticesX, nbVerticesY, nbVerticesZ); // This function prevent from cutting the scene in too many blocs 
    5253 
    53     osg::notify(osg::INFO) 
     54    OSG_NOTIFY(osg::INFO) 
    5455        << "Cutting x by " << nbVerticesX << std::endl 
    5556        << "Cutting y by " << nbVerticesY << std::endl 
     
    120121    { 
    121122        if (x >= boxList[i].xMin() &&  
    122             x < boxList[i].xMax() && 
     123            x <  boxList[i].xMax() && 
    123124            y >= boxList[i].yMin() && 
    124             y < boxList[i].yMax() && 
     125            y <  boxList[i].yMax() && 
    125126            z >= boxList[i].zMin() && 
    126             z < boxList[i].zMax()) 
     127            z <  boxList[i].zMax()) 
    127128        { 
    128129            return i; 
    129130        } 
    130131    } 
    131     throw "Point is not in any blocs"; 
     132    assert(false && "Point is not in any blocs"); 
     133    return 0; 
    132134} 
    133135