Changeset 2751 for GTP/trunk/App/Demos/Vis/CHC_revisited/Triangle3.h
- Timestamp:
- 06/10/08 13:15:59 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/CHC_revisited/Triangle3.h
r2750 r2751 5 5 6 6 7 namespace GtpVisibilityPreprocessor { 7 namespace CHCDemo 8 { 8 9 9 10 class AxisAlignedBox3; 10 class Ray;11 struct SimpleRay;12 11 class Plane3; 12 13 13 14 14 struct Triangle3 … … 26 26 27 27 float GetArea() const; 28 29 /// returns bounding box around this triangle28 /** returns bounding box around this triangle 29 */ 30 30 AxisAlignedBox3 GetBoundingBox() const; 31 32 /// Casts ray into this triangle. Returns hit33 int CastRay(const Ray &ray, float &t, const float nearestT, Vector3 &normal) const;34 35 int CastSimpleRay(const SimpleRay &ray, float &t, const float nearestT) const;36 37 friend std::ostream& operator<< (std::ostream &s, const Triangle3 &A);38 friend std::istream& operator>> (std::istream &s, Triangle3 &A);39 40 31 /** Checks if this triangle is ill-defined. 41 32 */ 42 33 bool CheckValidity() const; 43 44 34 /** Intersects triangle with plane, returns intersection points 45 35 if intersection is happening. … … 50 40 Vector3 &intersectA, 51 41 Vector3 &intersectB) const; 42 43 44 friend std::ostream& operator<< (std::ostream &s, const Triangle3 &A); 45 friend std::istream& operator>> (std::istream &s, Triangle3 &A); 46 52 47 53 48 ///////////////////
Note: See TracChangeset
for help on using the changeset viewer.