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