Changeset 583

Show
Ignore:
Timestamp:
07/03/08 12:40:00 (3 months ago)
Author:
phill
Message:

o Got rid of possible init-time hatred.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libx42make/modeldata-cull.cpp

    r462 r583  
    4343        std::vector< bool > nonUnique( verts.size() ); 
    4444 
    45         bddbox = aabb::empty
     45        bddbox = aabb::empty()
    4646 
    4747        for( uint i = 0; i < verts.size(); i++ ) 
     
    197197{ 
    198198        if( !boxes.size() ) 
    199                 return aabb::empty
    200  
    201         aabb box = aabb::empty
     199                return aabb::empty()
     200 
     201        aabb box = aabb::empty()
    202202        for( uint i = 0; i < boxes.size(); i++ ) 
    203203                box |= boxes[i]; 
  • trunk/libx42pp/geom.cpp

    r303 r583  
    2727namespace geom 
    2828{ 
    29  
    30 const aabb aabb::empty = { { 1, 1, 1 }, { -1, -1, -1 } }; 
    3129 
    3230aabb aabb::operator | ( const vec3 &v ) const 
     
    8886        if( is_empty() || b.is_empty() ) 
    8987        { 
    90                 *this = aabb::empty
     88                *this = aabb::empty()
    9189        } 
    9290        else 
  • trunk/libx42pp/include/x42geom-aabb.h

    r303 r583  
    6767        bool contains( const ::x42::math::vec3 &v ) const; 
    6868 
    69         static const aabb empty; 
     69        static aabb empty() { aabb ret = { { 1, 1, 1 }, { -1, -1, -1 } }; return ret; } 
    7070}; 
    7171