Changeset 1912 for GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.h
- Timestamp:
- 12/20/06 00:26:02 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/BvHierarchy.h
r1903 r1912 382 382 mNode(NULL), 383 383 mDepth(0), 384 mProbability(0.0),385 384 mMaxCostMisses(0), 386 385 mAxis(0), 387 mNumRays(0) 386 mNumRays(0), 387 mCorrectedPvs(0), 388 mPvs(0), 389 mCorrectedRenderCost(0), 390 mRenderCost(0) 388 391 { 389 392 for (int i = 0; i < 4; ++ i) … … 397 400 mNode(node), 398 401 mDepth(depth), 399 //mBoundingBox(box),400 mProbability(v),401 402 mMaxCostMisses(0), 402 403 mAxis(0), 403 mNumRays(numRays) 404 mNumRays(numRays), 405 mCorrectedPvs(0), 406 mPvs(0), 407 mCorrectedRenderCost(0), 408 mRenderCost(v) 404 409 { 405 410 for (int i = 0; i < 4; ++ i) … … 420 425 /// current depth 421 426 int mDepth; 422 /// the probability that this node is seen423 float m Probability;424 /// the bounding box of the node425 //AxisAlignedBox3 mBoundingBox;427 /// the render cost of the node 428 float mRenderCost; 429 /// the corrected render cost; 430 float mCorrectedRenderCost; 426 431 /// how often this branch has missed the max-cost ratio 427 432 int mMaxCostMisses; … … 430 435 /// number of rays 431 436 int mNumRays; 437 /// parent Pvs; 438 float mPvs; 439 /// parent pvs correction factor 440 float mCorrectedPvs; 441 432 442 /// the sorted objects for the three dimensions 433 443 ObjectContainer *mSortedObjects[4]; … … 486 496 return mPriority; 487 497 } 498 499 /////////////////////////////7 488 500 489 501 /// pointer to parent tree. … … 496 508 /// the objects on the back of the potential split 497 509 ObjectContainer mBackObjects; 510 511 float mCorrectedFrontPvs; 512 float mCorrectedBackPvs; 513 514 float mCorrectedFrontCost; 515 float mCorrectedBackCost; 498 516 }; 499 517 … … 821 839 /** Evaluates increase in pvs size. 822 840 */ 823 int EvalPvsEntriesIncr(BvhSubdivisionCandidate &splitCandidate ) const;841 int EvalPvsEntriesIncr(BvhSubdivisionCandidate &splitCandidate, const float avgRayContri) const; 824 842 825 843 /** Rays will be clipped to the bounding box.
Note: See TracChangeset
for help on using the changeset viewer.