Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tesselationhelpers.cpp

    r15b670 r112b09  
    55 *      Author: heber
    66 */
     7
     8#include "Helpers/MemDebug.hpp"
    79
    810#include <fstream>
     
    1416#include "tesselationhelpers.hpp"
    1517#include "vector.hpp"
     18#include "Line.hpp"
    1619#include "vector_ops.hpp"
    1720#include "verbose.hpp"
     
    666669  // calculate the intersection between this projected baseline and Base
    667670  Vector *Intersection = new Vector;
    668   *Intersection = GetIntersectionOfTwoLinesOnPlane(*(Base->endpoints[0]->node->node),
    669                                                    *(Base->endpoints[1]->node->node),
    670                                                      NewOffset, NewDirection);
     671  Line line1 = makeLineThrough(*(Base->endpoints[0]->node->node),*(Base->endpoints[1]->node->node));
     672  Line line2 = makeLineThrough(NewOffset, NewDirection);
     673  *Intersection = line1.getIntersection(line2);
    671674  Normal = (*Intersection) - (*Base->endpoints[0]->node->node);
    672675  DoLog(1) && (Log() << Verbose(1) << "Found closest point on " << *Base << " at " << *Intersection << ", factor in line is " << fabs(Normal.ScalarProduct(Baseline)/Baseline.NormSquared()) << "." << endl);
Note: See TracChangeset for help on using the changeset viewer.