Changeset 503 for trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.h
- Timestamp:
- 01/05/06 20:41:52 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.h
r492 r503 44 44 */ 45 45 void ComputeBoundingBox(AxisAlignedBox3 &box); 46 46 47 /** Splits the polygon and returns the part of the polygon inside of the node geometry. 47 48 */ 48 49 Polygon3 *SplitPolygon(Polygon3 *poly, const float epsilon) const; 49 50 51 /** Adds node geometry to mesh. 52 @note the mesh vertices will not be connected 53 */ 54 void AddToMesh(Mesh &mesh); 55 56 /** The polygons the geometry consists of. 57 */ 50 58 PolygonContainer mPolys; 51 59 }; … … 132 140 /// polygon splits 133 141 int polySplits; 142 /// accumulated number of rays refs 143 int accumRays; 134 144 135 145 // Constructor … … 145 155 // TODO: computation wrong 146 156 double AvgDepth() const { return accumDepth / (double)Leaves();}; 147 157 double AvgRays() const { return accumRays / (double)Leaves();}; 158 148 159 void Reset() 149 160 { … … 170 181 invalidLeaves = 0; 171 182 polySplits = 0; 183 accumRays = 0; 172 184 } 173 185 … … 458 470 @returns the number of intersections with objects stored in the tree. 459 471 */ 460 int 461 _CastRay(Ray &ray); 462 463 464 int 465 CastLineSegment(const Vector3 &origin, 466 const Vector3 &termination, 467 ViewCellContainer &viewcells 468 ); 469 470 ViewCell * 471 GetViewCell(const Vector3 &point); 472 int _CastRay(Ray &ray); 473 474 475 int CastLineSegment(const Vector3 &origin, 476 const Vector3 &termination, 477 ViewCellContainer &viewcells 478 ); 479 480 ViewCell *GetViewCell(const Vector3 &point); 472 481 473 482 /// bsp tree construction types … … 483 492 const bool onlyUnmailed) const; 484 493 485 /** Constructs geometry associated with the half space intersections 486 leading to this node. 487 */ 488 void ConstructGeometry(BspNode *n, PolygonContainer &cell) const; 494 /** Constructs geometry of view cell returning a BSP node geometry type. 495 */ 496 void ConstructGeometry(BspNode *n, BspNodeGeometry &cell) const; 489 497 490 498 /** Construct geometry of view cell. 491 499 */ 492 void ConstructGeometry(BspViewCell *vc, PolygonContainer &cell) const; 493 494 /** Constructs geometry of view cell returning a BSP node geometry type. 495 */ 496 void ConstructGeometry(BspNode *n, BspNodeGeometry &cell) const; 500 void ConstructGeometry(BspViewCell *vc, BspNodeGeometry &geom) const; 497 501 498 502 /** Returns random leaf of BSP tree. … … 788 792 void AddToPvs(BspLeaf *leaf, 789 793 const BoundedRayContainer &rays, 790 int &sampleContributions, 794 int &sampleContributions, 791 795 int &contributingSamples); 792 796
Note: See TracChangeset
for help on using the changeset viewer.