Ignore:
Timestamp:
06/10/08 13:15:59 (16 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/CHC_revisited/Triangle3.h

    r2750 r2751  
    55 
    66 
    7 namespace GtpVisibilityPreprocessor { 
     7namespace CHCDemo  
     8{ 
    89 
    910class AxisAlignedBox3; 
    10 class Ray; 
    11 struct SimpleRay; 
    1211class Plane3; 
     12 
    1313 
    1414struct Triangle3  
     
    2626 
    2727        float GetArea() const; 
    28  
    29         /// returns bounding box around this triangle 
     28        /** returns bounding box around this triangle 
     29        */ 
    3030        AxisAlignedBox3 GetBoundingBox() const; 
    31  
    32         /// Casts ray into this triangle. Returns hit 
    33         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  
    4031        /** Checks if this triangle is ill-defined. 
    4132        */ 
    4233        bool CheckValidity() const; 
    43  
    4434        /** Intersects triangle with plane, returns intersection points 
    4535                if intersection is happening. 
     
    5040                                                          Vector3 &intersectA,  
    5141                                                          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 
    5247 
    5348        /////////////////// 
Note: See TracChangeset for help on using the changeset viewer.