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