Changeset 639 for GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
- Timestamp:
- 02/14/06 17:13:42 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/VspBspTree.cpp
r612 r639 18 18 #include "Beam.h" 19 19 20 #define USE_FIXEDPOINT_T 0 21 20 22 21 23 //-- static members … … 66 68 mViewCellsManager(NULL), 67 69 mOutOfBoundsCell(NULL), 68 mStoreRays( false),70 mStoreRays(true), 69 71 mRenderCostWeight(0.5), 70 72 mUseRandomAxis(false), … … 602 604 RayInfoContainer::const_iterator it, it_end = tData.mRays->end(); 603 605 for (it = tData.mRays->begin(); it != it_end; ++ it) 606 { 607 (*it).mRay->Ref(); 604 608 leaf->mVssRays.push_back((*it).mRay); 609 } 605 610 } 606 611 … … 1886 1891 1887 1892 1893 void 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 1888 1910 void VspBspTree::ValidateTree() 1889 1911 { … … 1988 2010 RayInfoContainer &rays, 1989 2011 RayInfoContainer &frontRays, 1990 RayInfoContainer &backRays) 2012 RayInfoContainer &backRays) const 1991 2013 { 1992 2014 int splits = 0; … … 2015 2037 { 2016 2038 //-- split ray 2017 // --test if start point behind or in front of plane2039 // test if start point behind or in front of plane 2018 2040 const int side = plane.Side(bRay.ExtrapOrigin()); 2019 2041
Note: See TracChangeset
for help on using the changeset viewer.