Changeset 0d111b for molecuilder/src/triangleintersectionlist.cpp
- Timestamp:
- Apr 29, 2010, 1:55:21 PM (15 years ago)
- Children:
- 070651, 5d1a94
- Parents:
- 90c4460 (diff), 32842d8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/triangleintersectionlist.cpp
r90c4460 r0d111b 94 94 if (runner != IntersectionList.end()) { 95 95 // if we have found one, check Scalarproduct between the vector 96 Vector TestVector(Point); 97 TestVector.SubtractVector((*runner).second); 96 Vector TestVector = (*Point) - (*(*runner).second); 98 97 if (fabs(TestVector.NormSquared()) < MYEPSILON) // 99 98 return true; 100 const double sign = (*runner).first->NormalVector.ScalarProduct( &TestVector);99 const double sign = (*runner).first->NormalVector.ScalarProduct(TestVector); 101 100 if (sign < 0) { 102 101 return true; … … 147 146 if (DistanceList.empty()) 148 147 for (TriangleVectorMap::const_iterator runner = IntersectionList.begin(); runner != IntersectionList.end(); runner++) 149 DistanceList.insert( pair<double, BoundaryTriangleSet *> (Point->Distance( (*runner).second), (*runner).first) );148 DistanceList.insert( pair<double, BoundaryTriangleSet *> (Point->Distance(*(*runner).second), (*runner).first) ); 150 149 151 150 //for (DistanceTriangleMap::const_iterator runner = DistanceList.begin(); runner != DistanceList.end(); runner++)
Note:
See TracChangeset
for help on using the changeset viewer.