Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/triangleintersectionlist.cpp

    rd74077 r952f38  
    1515#include "triangleintersectionlist.hpp"
    1616
    17 #include "BoundaryPointSet.hpp"
    18 #include "BoundaryLineSet.hpp"
    19 #include "BoundaryTriangleSet.hpp"
    20 #include "info.hpp"
     17#include "Helpers/Info.hpp"
    2118#include "tesselation.hpp"
    22 #include "vector.hpp"
    23 #include "verbose.hpp"
     19#include "LinearAlgebra/Vector.hpp"
     20#include "Helpers/Verbose.hpp"
    2421
    2522/** Constructor for class TriangleIntersectionList.
    2623 *
    2724 */
    28 TriangleIntersectionList::TriangleIntersectionList(const Vector &x, const Tesselation *surface, const LinkedCell* LC) :
     25TriangleIntersectionList::TriangleIntersectionList(const Vector *x, const Tesselation *surface, const LinkedCell* LC) :
    2926  Point(x),
    3027  Tess(surface),
     
    7370  }
    7471  // return reference, if none can be found
    75   return Point;
     72  return *Point;
    7673};
    7774
     
    10299  if (runner != IntersectionList.end()) {
    103100    // if we have found one, check Scalarproduct between the vector
    104     Vector TestVector = (Point) - (*(*runner).second);
     101    Vector TestVector = (*Point) - (*(*runner).second);
    105102    if (fabs(TestVector.NormSquared()) < MYEPSILON) //
    106103      return true;
     
    141138    // get intersection with triangle plane
    142139    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;
    145142    IntersectionList.insert( pair<BoundaryTriangleSet *, Vector * > (*TriangleRunner, Intersection) );
    146143  }
     
    154151  if (DistanceList.empty())
    155152    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) );
    157154
    158155  //for (DistanceTriangleMap::const_iterator runner = DistanceList.begin(); runner != DistanceList.end(); runner++)
Note: See TracChangeset for help on using the changeset viewer.