Changeset 1769 for GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.cpp
- Timestamp:
- 11/20/06 11:35:26 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/Lib/Vis/Preprocessing/src/Mesh.cpp
r1768 r1769 802 802 803 803 // 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; 806 807 const int vertexIdxA = face->mVertexIndices[edgeIdx]; 807 808 const int vertexIdxB = face->mVertexIndices[(edgeIdx + 1) % (int)face->mVertexIndices.size()]; … … 815 816 point = a * w + b * (1.0f - w); 816 817 818 //cout << "va " << a << " vb " << b << "p " << point << endl; 817 819 // hack: set normal of face as normal 818 820 normal = mMesh->GetFacePlane(faceIdx).mNormal;
Note: See TracChangeset
for help on using the changeset viewer.