Changeset 366 for trunk/VUT/GtpVisibilityPreprocessor/src/Ray.h
- Timestamp:
- 11/01/05 20:02:22 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibilityPreprocessor/src/Ray.h
r362 r366 56 56 }; 57 57 58 struct BspIntersection 59 { 60 float mT; 61 BspLeaf *leaf; 62 BspIntersection(float t, BspLeaf *l): mT(t), leaf(l) 63 {} 64 65 bool operator<(const BspIntersection &b) const 66 { 67 return mT < b.mT; 68 } 69 }; 70 58 71 // I should have some abstract cell data type !!! here 59 72 // corresponds to the spatial elementary cell … … 62 75 63 76 vector<Intersection> intersections; 77 vector<BspIntersection> bspIntersections; 64 78 vector<KdLeaf *> kdLeaves; 65 79 vector<MeshInstance *> meshes; 66 vector<BspLeaf *> bspLeaves;67 80 68 81 // constructors … … 197 210 int ClassifyPlane(const Plane3 &plane, const float minT, const float maxT) const; 198 211 212 void Insert(const BspIntersection &bspi); 213 199 214 private: 200 215 Vector3 loc, dir; // Describes ray origin and vector
Note: See TracChangeset
for help on using the changeset viewer.