Changeset 291 for trunk


Ignore:
Timestamp:
09/19/05 09:01:31 (19 years ago)
Author:
mattausch
Message:
 
Location:
trunk/VUT/GtpVisibilityPreprocessor/src
Files:
2 edited

Legend:

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

    r290 r291  
    2424                mVertices.push_back(parentMesh->mVertices[*it]); 
    2525                mMaterial = parentMesh->mMaterial; 
    26                  
    27                 //Debug << parentMesh->mVertices[*it] << endl; 
    2826        } 
    2927} 
     
    150148                        // Decide if plane and surface normal are same 
    151149                        if (DotProd(plane.mNormal, GetSupportingPlane().mNormal) > 0) 
    152                                 return COINCIDENT; 
     150                                return COINCIDENT; // plane and polygon are coincident 
    153151                        else  
    154152                                return FRONT_SIDE; 
     
    165163        } 
    166164 
    167         // plane and polygon are coincident 
    168         return COINCIDENT; 
     165        // Decide if plane and surface normal are same 
     166        if (DotProd(plane.mNormal, GetSupportingPlane().mNormal) > 0) 
     167                return COINCIDENT; // plane and polygon are coincident 
     168        else  
     169                return FRONT_SIDE; 
    169170} 
    170171 
  • trunk/VUT/GtpVisibilityPreprocessor/src/ViewCellBsp.cpp

    r290 r291  
    630630        { 
    631631                Debug << "WARNING: size " << coincident.size() << " at depth " << tData.mDepth << ", #back polys: " << (int)backPolys->size() << ", #front polys: " << (int)frontPolys->size() << endl; 
    632                 for (int i=0; i<coincident.size();++i) 
    633                         Debug << "coincident " << i << " vc " << coincident[i]->mParent << endl; 
     632                for (int i=0; i<coincident.size(); ++i) 
     633                        Debug << "coincident " << i << " vc " << *coincident[i]->mParent << endl; 
    634634        } 
    635635        //Debug << "coincident size: " << coincident.size() << endl; 
Note: See TracChangeset for help on using the changeset viewer.