Ignore:
Timestamp:
11/20/06 11:35:26 (18 years ago)
Author:
mattausch
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.cpp

    r1768 r1769  
    802802 
    803803        // get random edge of face (hack: this is not uniform in the edges! 
    804         const int edgeIdx = (int)RandomValue(0.0f, face->mVertexIndices.size() - 0.5f); 
    805  
     804        const int edgeIdx = (int)RandomValue(0.0f, (float)face->mVertexIndices.size() - 0.5f); 
     805 
     806        //cout << "idx = " << edgeIdx << " s: " << face->mVertexIndices.size() << endl; 
    806807        const int vertexIdxA = face->mVertexIndices[edgeIdx]; 
    807808        const int vertexIdxB = face->mVertexIndices[(edgeIdx + 1) % (int)face->mVertexIndices.size()]; 
     
    815816        point = a * w + b * (1.0f - w); 
    816817 
     818        //cout << "va " << a << " vb " << b << "p " << point << endl; 
    817819        // hack: set normal of face as normal 
    818820        normal = mMesh->GetFacePlane(faceIdx).mNormal; 
Note: See TracChangeset for help on using the changeset viewer.