Ignore:
Timestamp:
02/14/06 17:13:42 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp

    r612 r639  
    1818#include "Beam.h" 
    1919 
     20#define USE_FIXEDPOINT_T 0 
     21 
    2022 
    2123//-- static members 
     
    6668mViewCellsManager(NULL), 
    6769mOutOfBoundsCell(NULL), 
    68 mStoreRays(false), 
     70mStoreRays(true), 
    6971mRenderCostWeight(0.5), 
    7072mUseRandomAxis(false), 
     
    602604                        RayInfoContainer::const_iterator it, it_end = tData.mRays->end(); 
    603605                        for (it = tData.mRays->begin(); it != it_end; ++ it) 
     606                        { 
     607                                (*it).mRay->Ref();                       
    604608                                leaf->mVssRays.push_back((*it).mRay); 
     609                        } 
    605610                } 
    606611 
     
    18861891 
    18871892 
     1893void VspBspTree::CollectRays(VssRayContainer &rays) 
     1894{ 
     1895        vector<BspLeaf *> leaves; 
     1896 
     1897        vector<BspLeaf *>::const_iterator lit, lit_end = leaves.end(); 
     1898 
     1899        for (lit = leaves.begin(); lit != lit_end; ++ lit) 
     1900        { 
     1901                BspLeaf *leaf = *lit; 
     1902                VssRayContainer::const_iterator rit, rit_end = leaf->mVssRays.end(); 
     1903 
     1904                for (rit = leaf->mVssRays.begin(); rit != rit_end; ++ rit) 
     1905                        rays.push_back(*rit); 
     1906        } 
     1907} 
     1908 
     1909 
    18881910void VspBspTree::ValidateTree() 
    18891911{ 
     
    19882010                                                  RayInfoContainer &rays, 
    19892011                                                  RayInfoContainer &frontRays, 
    1990                                                   RayInfoContainer &backRays) 
     2012                                                  RayInfoContainer &backRays) const 
    19912013{ 
    19922014        int splits = 0; 
     
    20152037                        { 
    20162038                                //-- split ray 
    2017                                 //-- test if start point behind or in front of plane 
     2039                                //  test if start point behind or in front of plane 
    20182040                                const int side = plane.Side(bRay.ExtrapOrigin()); 
    20192041 
Note: See TracChangeset for help on using the changeset viewer.