Changeset 542 for trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.h
- Timestamp:
- 01/16/06 03:23:29 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VspBspTree.h
r532 r542 60 60 /// how often this branch has missed the max-cost ratio 61 61 int mMaxCostMisses; 62 62 /// bounding box of current view space. 63 ///AxisAlignedBox3 mBbox; 64 63 65 /** Returns average ray contribution. 64 66 */ … … 78 80 mGeometry(NULL), 79 81 mMaxCostMisses(0) 82 //,mIsAxisAligned(false) 80 83 {} 81 84 … … 297 300 ViewCellContainer &viewCells, 298 301 bool onlyUnmailed = false) const; 302 303 /** returns maximal valid pvs. 304 */ 305 int GetMaxPvs() { return mMaxPvs;} 306 307 /** Checks validy of view cells. 308 if not valid, sets regions invalid and deletes view cell. 309 */ 310 void CheckValidy(); 311 299 312 protected: 300 313 … … 326 339 }; 327 340 341 float EvalAxisAlignedSplitCost(const VspBspTraversalData &data, 342 const AxisAlignedBox3 &box, 343 const int axis, 344 const float &position) const; 345 328 346 /** Returns view cell corresponding to 329 347 the invalid view space. If it does not exist, it is created. … … 447 465 BspNodeGeometry **backGeom, 448 466 float &frontArea, 449 float &backArea); 467 float &backArea, 468 bool useKdSplit); 450 469 451 470 /** Sorts split candidates for surface area heuristics for axis aligned splits. … … 779 798 static float sOverallCost; 780 799 800 /** Evaluates the merge costs of the leaves. 801 */ 802 void EvalMergeCost(); 803 781 804 protected: 782 805 … … 784 807 */ 785 808 float GetCost(ViewCell *vc) const; 786 /** Evaluates the merge costs of the leaves. 787 */ 788 void EvalMergeCost(); 789 809 790 810 int mLeaf1Id; 791 811 int mLeaf2Id;
Note: See TracChangeset
for help on using the changeset viewer.