- Timestamp:
- 09/04/06 08:56:26 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreKdTree.cpp
r1312 r1320 25 25 { 26 26 27 enum Intersection27 enum BvhIntersection 28 28 { 29 29 OUTSIDE=0, … … 32 32 }; 33 33 34 Intersection intersect( const Ray &one, const AxisAlignedBox &two )34 static BvhIntersection intersect( const Ray &one, const AxisAlignedBox &two ) 35 35 { 36 36 // Null box? … … 99 99 /** Checks how the second box intersects with the first. 100 100 */ 101 Intersection intersect( const PlaneBoundedVolume &one, const AxisAlignedBox &two )101 static BvhIntersection intersect( const PlaneBoundedVolume &one, const AxisAlignedBox &two ) 102 102 { 103 103 // Null box? … … 146 146 /** Checks how the second box intersects with the first. 147 147 */ 148 Intersection intersect( const AxisAlignedBox &one, const AxisAlignedBox &two )148 static BvhIntersection intersect( const AxisAlignedBox &one, const AxisAlignedBox &two ) 149 149 { 150 150 // Null box? … … 180 180 /** Checks how the box intersects with the sphere. 181 181 */ 182 Intersection intersect( const Sphere &one, const AxisAlignedBox &two )182 static BvhIntersection intersect( const Sphere &one, const AxisAlignedBox &two ) 183 183 { 184 184 // Null box? … … 1512 1512 if ( !full ) 1513 1513 { 1514 Intersection isect = intersect(box, node->_getWorldAABB());1514 BvhIntersection isect = intersect(box, node->_getWorldAABB()); 1515 1515 1516 1516 if ( isect == OUTSIDE ) … … 1536 1536 else 1537 1537 { 1538 Intersection nsect = intersect(box, sn->_getWorldAABB());1538 BvhIntersection nsect = intersect(box, sn->_getWorldAABB()); 1539 1539 1540 1540 if ( nsect != OUTSIDE )
Note: See TracChangeset
for help on using the changeset viewer.