Ignore:
Timestamp:
11/10/05 19:01:38 (19 years ago)
Author:
mattausch
Message:

fixed some bugs in pvs criterium, take other ray plane candidates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/GtpVisibilityPreprocessor/src/Polygon3.cpp

    r396 r404  
    136136} 
    137137 
    138 int Polygon3::ClassifyPlane(const Plane3 &plane) const 
     138int Polygon3::ClassifyPlane(const Plane3 &plane, const float tolerance) const 
    139139{ 
    140140        VertexContainer::const_iterator it; 
     
    147147        for (it = mVertices.begin(); it != mVertices.end(); ++ it) 
    148148        { 
    149                 const int side = plane.Side(*it, Vector3::sDistTolerance); 
     149                const int side = plane.Side(*it, tolerance); 
    150150                 
    151151                if (side > 0) 
     
    176176         
    177177        return COINCIDENT; // plane and polygon are coincident 
     178} 
     179 
     180int Polygon3::ClassifyPlane(const Plane3 &plane) const 
     181{ 
     182        return ClassifyPlane(plane, Vector3::sDistTolerance); 
    178183} 
    179184 
Note: See TracChangeset for help on using the changeset viewer.