Changes in src/triangleintersectionlist.cpp [952f38:bf3817]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/triangleintersectionlist.cpp
r952f38 rbf3817 9 9 */ 10 10 11 // include config.h 12 #ifdef HAVE_CONFIG_H 13 #include <config.h> 14 #endif 15 11 16 #include "Helpers/MemDebug.hpp" 12 17 … … 16 21 17 22 #include "Helpers/Info.hpp" 23 #include "BoundaryMaps.hpp" 24 #include "BoundaryPointSet.hpp" 25 #include "BoundaryLineSet.hpp" 26 #include "BoundaryTriangleSet.hpp" 18 27 #include "tesselation.hpp" 19 28 #include "LinearAlgebra/Vector.hpp" … … 23 32 * 24 33 */ 25 TriangleIntersectionList::TriangleIntersectionList(const Vector *x, const Tesselation *surface, const LinkedCell* LC) :34 TriangleIntersectionList::TriangleIntersectionList(const Vector &x, const Tesselation *surface, const LinkedCell* LC) : 26 35 Point(x), 27 36 Tess(surface), … … 70 79 } 71 80 // return reference, if none can be found 72 return *Point;81 return Point; 73 82 }; 74 83 … … 99 108 if (runner != IntersectionList.end()) { 100 109 // if we have found one, check Scalarproduct between the vector 101 Vector TestVector = ( *Point) - (*(*runner).second);110 Vector TestVector = (Point) - (*(*runner).second); 102 111 if (fabs(TestVector.NormSquared()) < MYEPSILON) // 103 112 return true; … … 138 147 // get intersection with triangle plane 139 148 Intersection = new Vector; 140 (*TriangleRunner)->GetClosestPointInsideTriangle(Point, Intersection);141 //Log() << Verbose(1) << "Intersection between " << *Point << " and " << **TriangleRunner << " is at " << *Intersection << "." << endl;149 (*TriangleRunner)->GetClosestPointInsideTriangle(Point, *Intersection); 150 //Log() << Verbose(1) << "Intersection between " << Point << " and " << **TriangleRunner << " is at " << *Intersection << "." << endl; 142 151 IntersectionList.insert( pair<BoundaryTriangleSet *, Vector * > (*TriangleRunner, Intersection) ); 143 152 } … … 151 160 if (DistanceList.empty()) 152 161 for (TriangleVectorMap::const_iterator runner = IntersectionList.begin(); runner != IntersectionList.end(); runner++) 153 DistanceList.insert( pair<double, BoundaryTriangleSet *> (Point ->distance(*(*runner).second), (*runner).first) );162 DistanceList.insert( pair<double, BoundaryTriangleSet *> (Point.distance(*(*runner).second), (*runner).first) ); 154 163 155 164 //for (DistanceTriangleMap::const_iterator runner = DistanceList.begin(); runner != DistanceList.end(); runner++)
Note:
See TracChangeset
for help on using the changeset viewer.