Changeset 583
- Timestamp:
- 07/03/08 12:40:00 (3 months ago)
- Files:
-
- trunk/libx42make/modeldata-cull.cpp (modified) (2 diffs)
- trunk/libx42pp/geom.cpp (modified) (2 diffs)
- trunk/libx42pp/include/x42geom-aabb.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libx42make/modeldata-cull.cpp
r462 r583 43 43 std::vector< bool > nonUnique( verts.size() ); 44 44 45 bddbox = aabb::empty ;45 bddbox = aabb::empty(); 46 46 47 47 for( uint i = 0; i < verts.size(); i++ ) … … 197 197 { 198 198 if( !boxes.size() ) 199 return aabb::empty ;200 201 aabb box = aabb::empty ;199 return aabb::empty(); 200 201 aabb box = aabb::empty(); 202 202 for( uint i = 0; i < boxes.size(); i++ ) 203 203 box |= boxes[i]; trunk/libx42pp/geom.cpp
r303 r583 27 27 namespace geom 28 28 { 29 30 const aabb aabb::empty = { { 1, 1, 1 }, { -1, -1, -1 } };31 29 32 30 aabb aabb::operator | ( const vec3 &v ) const … … 88 86 if( is_empty() || b.is_empty() ) 89 87 { 90 *this = aabb::empty ;88 *this = aabb::empty(); 91 89 } 92 90 else trunk/libx42pp/include/x42geom-aabb.h
r303 r583 67 67 bool contains( const ::x42::math::vec3 &v ) const; 68 68 69 static const aabb empty;69 static aabb empty() { aabb ret = { { 1, 1, 1 }, { -1, -1, -1 } }; return ret; } 70 70 }; 71 71
