Ignore:
Timestamp:
03/31/06 20:31:55 (19 years ago)
Author:
mattausch
Message:
 
Location:
GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/scripts/Plugin_VisibilitySceneManager.vcproj

    r675 r722  
    266266                        </Filter> 
    267267                </Filter> 
     268                <File 
     269                        RelativePath=".\VTune\Plugin_VisibilitySceneManager.vpj"> 
     270                </File> 
    268271        </Files> 
    269272        <Globals> 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOctreeHierarchyInterface.cpp

    r370 r722  
    5151bool OctreeHierarchyInterface::HasGeometry(GtpVisibility::HierarchyNode *node) const 
    5252{ 
    53         return static_cast<Octree *>(node)->mNodes.size() > 0; 
     53        return !(static_cast<Octree *>(node))->mNodes.empty(); 
    5454} 
    5555//----------------------------------------------------------------------- 
    5656float OctreeHierarchyInterface::GetSquaredDistance(GtpVisibility::HierarchyNode *node) const 
    5757{ 
    58         AxisAlignedBox *box = &static_cast<Octree *>(node)->mBox; 
    59         Vector3 pos = ((box->getMaximum() - box->getMinimum()) * 0.5) + box->getMinimum(); 
     58        LogManager::getSingleton().logMessage("here4"); 
     59 
     60        const AxisAlignedBox &box = static_cast<Octree *>(node)->mBox; 
     61        const Vector3 pos = ((box.getMaximum() - box.getMinimum()) * 0.5) + box.getMinimum(); 
    6062         
    6163        return (mCullCamera->getDerivedPosition() - pos).squaredLength(); 
  • GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreSolidBoundingBox.cpp

    r118 r722  
    99#include <OgrePass.h> 
    1010#include <OgreTechnique.h> 
     11#include <OgreLogManager.h> 
    1112 
    1213namespace Ogre { 
     
    157158Real SolidBoundingBox::getSquaredViewDepth(const Camera* cam) const 
    158159{ 
    159         Vector3 min, max, mid, dist; 
    160  
    161         min = mBox.getMinimum(); 
    162         max = mBox.getMaximum(); 
    163         mid = ((min - max) * 0.5) + min; 
    164         dist = cam->getDerivedPosition() - mid; 
     160        Ogre::LogManager::getSingleton().logMessage("here3"); 
     161        const Vector3 &min = mBox.getMinimum(); 
     162        const Vector3 &max = mBox.getMaximum(); 
     163        const Vector3 &mid = ((min - max) * 0.5) + min; 
     164        const Vector3 &dist = cam->getDerivedPosition() - mid; 
    165165 
    166166        return dist.squaredLength(); 
Note: See TracChangeset for help on using the changeset viewer.