Changes in src/triangleintersectionlist.cpp [d74077:952f38]
- File:
-
- 1 edited
-
src/triangleintersectionlist.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/triangleintersectionlist.cpp
rd74077 r952f38 15 15 #include "triangleintersectionlist.hpp" 16 16 17 #include "BoundaryPointSet.hpp" 18 #include "BoundaryLineSet.hpp" 19 #include "BoundaryTriangleSet.hpp" 20 #include "info.hpp" 17 #include "Helpers/Info.hpp" 21 18 #include "tesselation.hpp" 22 #include " vector.hpp"23 #include " verbose.hpp"19 #include "LinearAlgebra/Vector.hpp" 20 #include "Helpers/Verbose.hpp" 24 21 25 22 /** Constructor for class TriangleIntersectionList. 26 23 * 27 24 */ 28 TriangleIntersectionList::TriangleIntersectionList(const Vector &x, const Tesselation *surface, const LinkedCell* LC) :25 TriangleIntersectionList::TriangleIntersectionList(const Vector *x, const Tesselation *surface, const LinkedCell* LC) : 29 26 Point(x), 30 27 Tess(surface), … … 73 70 } 74 71 // return reference, if none can be found 75 return Point;72 return *Point; 76 73 }; 77 74 … … 102 99 if (runner != IntersectionList.end()) { 103 100 // if we have found one, check Scalarproduct between the vector 104 Vector TestVector = ( Point) - (*(*runner).second);101 Vector TestVector = (*Point) - (*(*runner).second); 105 102 if (fabs(TestVector.NormSquared()) < MYEPSILON) // 106 103 return true; … … 141 138 // get intersection with triangle plane 142 139 Intersection = new Vector; 143 (*TriangleRunner)->GetClosestPointInsideTriangle(Point, *Intersection);144 //Log() << Verbose(1) << "Intersection between " << Point << " and " << **TriangleRunner << " is at " << *Intersection << "." << endl;140 (*TriangleRunner)->GetClosestPointInsideTriangle(Point, Intersection); 141 //Log() << Verbose(1) << "Intersection between " << *Point << " and " << **TriangleRunner << " is at " << *Intersection << "." << endl; 145 142 IntersectionList.insert( pair<BoundaryTriangleSet *, Vector * > (*TriangleRunner, Intersection) ); 146 143 } … … 154 151 if (DistanceList.empty()) 155 152 for (TriangleVectorMap::const_iterator runner = IntersectionList.begin(); runner != IntersectionList.end(); runner++) 156 DistanceList.insert( pair<double, BoundaryTriangleSet *> (Point .distance(*(*runner).second), (*runner).first) );153 DistanceList.insert( pair<double, BoundaryTriangleSet *> (Point->distance(*(*runner).second), (*runner).first) ); 157 154 158 155 //for (DistanceTriangleMap::const_iterator runner = DistanceList.begin(); runner != DistanceList.end(); runner++)
Note:
See TracChangeset
for help on using the changeset viewer.
