Changeset 468 for trunk/VUT/GtpVisibilityPreprocessor/src/VspKdTree.h
- Timestamp:
- 12/15/05 18:45:12 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/VspKdTree.h
r465 r468 488 488 leafb->GetPvsSize() * (float)leafb->rays.size(); 489 489 #endif 490 491 492 493 494 495 496 497 498 499 500 490 } 491 }; 492 493 /** Simplified data for ray traversal only. 494 */ 495 struct RayTraversalData 496 { 497 RayInfo mRayData; 498 VspKdNode *mNode; 499 500 RayTraversalData() {} 501 501 502 RayTraversalData(VspKdNode *n, const RayInfo &data): 503 mRayData(data), mNode(n) {} 504 }; 505 502 RayTraversalData(VspKdNode *n, const RayInfo &data): 503 mRayData(data), mNode(n) {} 504 }; 505 506 struct LineSegmentTraversalData 507 { 508 VspKdNode *mNode; 509 Vector3 mExitPoint; 510 511 float mMaxT; 512 513 LineSegmentTraversalData () {} 514 LineSegmentTraversalData (VspKdNode *n, 515 const Vector3 &p, 516 const float maxt): 517 mNode(n), mExitPoint(p), mMaxT(maxt) {} 518 }; 519 506 520 public: 507 521 … … 558 572 @returns the number of intersections with objects stored in the tree. 559 573 */ 560 int CastRay(Ray &ray); 574 int CastLineSegment(const Vector3 &origin, 575 const Vector3 &termination, 576 vector<ViewCell *> &viewcells); 561 577 562 578 /** Collects view cells generated by this tree.
Note: See TracChangeset
for help on using the changeset viewer.