Changeset 293


Ignore:
Timestamp:
09/20/05 01:51:32 (19 years ago)
Author:
mattausch
Message:

debug version all debug messages left in

Location:
trunk/VUT/GtpVisibilityPreprocessor/src
Files:
2 edited

Legend:

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

    r291 r293  
    147147                { 
    148148                        // Decide if plane and surface normal are same 
    149                         if (DotProd(plane.mNormal, GetSupportingPlane().mNormal) > 0) 
     149                        if (DotProd(plane.mNormal, GetSupportingPlane().mNormal) > 0.99) 
    150150                                return COINCIDENT; // plane and polygon are coincident 
    151151                        else  
     
    164164 
    165165        // Decide if plane and surface normal are same 
    166         if (DotProd(plane.mNormal, GetSupportingPlane().mNormal) > 0) 
     166        if (DotProd(plane.mNormal, GetSupportingPlane().mNormal) > float(1.0 - 1.0e-5)) 
    167167                return COINCIDENT; // plane and polygon are coincident 
    168168        else  
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp

    r292 r293  
    160160                //Debug << "New polygon with plane: " << poly->GetSupportingPlane() << "\n"; 
    161161 
    162                 // test if split is neccessary 
     162                // get polygon classification 
    163163                int classification = poly->ClassifyPlane(mPlane); 
    164164 
     
    631631                Debug << "WARNING: size " << (int)coincident.size() << " at depth " << tData.mDepth << ", #back polys: " << (int)backPolys->size() << ", #front polys: " << (int)frontPolys->size() << endl; 
    632632                for (int i=0; i<coincident.size(); ++i) 
    633                         Debug << "coincident poly " << i << ", vc: " << coincident[i]->mParent << "\n" << *coincident[i] << endl; 
     633                        Debug << "coincident poly " << i << ", vc: " << coincident[i]->mParent << "\n" << *coincident[i] <<  
     634                        "dotprod: " << DotProd(coincident[i]->GetSupportingPlane().mNormal, interior->GetPlane()->mNormal) << endl; 
    634635        } 
    635636        //Debug << "coincident size: " << coincident.size() << endl; 
Note: See TracChangeset for help on using the changeset viewer.