Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/triangleintersectionlist.cpp

    r952f38 rd74077  
    1515#include "triangleintersectionlist.hpp"
    1616
    17 #include "Helpers/Info.hpp"
     17#include "BoundaryPointSet.hpp"
     18#include "BoundaryLineSet.hpp"
     19#include "BoundaryTriangleSet.hpp"
     20#include "info.hpp"
    1821#include "tesselation.hpp"
    19 #include "LinearAlgebra/Vector.hpp"
    20 #include "Helpers/Verbose.hpp"
     22#include "vector.hpp"
     23#include "verbose.hpp"
    2124
    2225/** Constructor for class TriangleIntersectionList.
    2326 *
    2427 */
    25 TriangleIntersectionList::TriangleIntersectionList(const Vector *x, const Tesselation *surface, const LinkedCell* LC) :
     28TriangleIntersectionList::TriangleIntersectionList(const Vector &x, const Tesselation *surface, const LinkedCell* LC) :
    2629  Point(x),
    2730  Tess(surface),
     
    7073  }
    7174  // return reference, if none can be found
    72   return *Point;
     75  return Point;
    7376};
    7477
     
    99102  if (runner != IntersectionList.end()) {
    100103    // if we have found one, check Scalarproduct between the vector
    101     Vector TestVector = (*Point) - (*(*runner).second);
     104    Vector TestVector = (Point) - (*(*runner).second);
    102105    if (fabs(TestVector.NormSquared()) < MYEPSILON) //
    103106      return true;
     
    138141    // get intersection with triangle plane
    139142    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;
    142145    IntersectionList.insert( pair<BoundaryTriangleSet *, Vector * > (*TriangleRunner, Intersection) );
    143146  }
     
    151154  if (DistanceList.empty())
    152155    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) );
    154157
    155158  //for (DistanceTriangleMap::const_iterator runner = DistanceList.begin(); runner != DistanceList.end(); runner++)
Note: See TracChangeset for help on using the changeset viewer.