Changeset 437 for trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.h
- Timestamp:
- 11/25/05 22:31:30 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.h
r436 r437 333 333 334 334 */ 335 void AddToPvs(const BoundedRayContainer &rays, int &sampleContributions, 336 int &contributingSamples, bool storeLeavesWithRays = false); 335 void AddToPvs(const BoundedRayContainer &rays, 336 int &sampleContributions, 337 int &contributingSamples, 338 bool storeLeavesWithRays = false); 337 339 338 340 protected: … … 471 473 int CastRay(Ray &ray); 472 474 473 /** Set to true if new view cells shall be generated in each leaf.474 */475 void SetGenerateViewCells(int generateViewCells);476 477 475 /// bsp tree construction types 478 476 enum {FROM_INPUT_VIEW_CELLS, FROM_SCENE_GEOMETRY, FROM_SAMPLES}; … … 701 699 BspTraversalData &backData, 702 700 const PolygonContainer &coincident, 703 const Plane3 splitPlane) const;701 const Plane3 &splitPlane) const; 704 702 705 703 /** Computes best cost ratio for the suface area heuristics for axis aligned … … 767 765 */ 768 766 void AddObjToPvs(Intersectable *obj, const int cf, int &frontPvs, int &backPvs) const; 769 767 768 /** Computes PVS size induced by the rays. 769 */ 770 770 int ComputePvsSize(const BoundedRayContainer &rays) const; 771 771 772 /** Returns true if tree can be terminated. 773 */ 772 774 inline bool TerminationCriteriaMet(const BspTraversalData &data) const; 773 775 776 /** Computes accumulated ray lenght of this rays. 777 */ 774 778 float AccumulatedRayLength(BoundedRayContainer &rays) const; 775 779 776 /// Pointer to the root of the tree 780 /// Pointer to the root of the tree. 777 781 BspNode *mRoot; 778 782 783 /// Stores statistics during traversal. 779 784 BspTreeStatistics mStat; 780 785 … … 800 805 BspViewCell *mRootCell; 801 806 802 /// should view cells be stored or generated in the leaves?807 /// if view cells should be generated or the given view cells should be used. 803 808 bool mGenerateViewCells; 804 809
Note: See TracChangeset
for help on using the changeset viewer.