Skip to content
Snippets Groups Projects
Commit a7996b19 authored by Lars Bilke's avatar Lars Bilke
Browse files

Fixed missing include and a typo.

parent de79e833
No related branches found
No related tags found
No related merge requests found
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <vector> #include <vector>
#include <stdexcept> #include <stdexcept>
#include "MathTools.h"
#include "Point.h" #include "Point.h"
namespace GeoLib namespace GeoLib
......
...@@ -51,7 +51,7 @@ private: ...@@ -51,7 +51,7 @@ private:
// Returns a grid containing all mesh surface points with elevation=0 // Returns a grid containing all mesh surface points with elevation=0
GeoLib::Grid<GeoLib::PointWithID>* getFlatGrid(MeshLib::Mesh const*const mesh, std::vector<GeoLib::PointWithID*> sfc_pnts) const; GeoLib::Grid<GeoLib::PointWithID>* getFlatGrid(MeshLib::Mesh const*const mesh, std::vector<GeoLib::PointWithID*> sfc_pnts) const;
// Returns the elevation at Point (x,y) based on a mesh. This uses collision detection for triangles and nearest neighbor for quads. // Returns the elevation at Point (x,y) based on a mesh. This uses collision detection for triangles and nearest neighbor for quads.
// NOTE: This medhod only returns correct values if the node numbering of the elements is correct! // NOTE: This medhod only returns correct values if the node numbering of the elements is correct!
double getMeshElevation(double x, double y, double min_val, double max_val) const; double getMeshElevation(double x, double y, double min_val, double max_val) const;
...@@ -66,7 +66,7 @@ private: ...@@ -66,7 +66,7 @@ private:
unsigned getPointPosInLine(GeoLib::Polyline const*const line, unsigned start, unsigned end, GeoLib::Point const*const point, double eps) const; unsigned getPointPosInLine(GeoLib::Polyline const*const line, unsigned start, unsigned end, GeoLib::Point const*const point, double eps) const;
// Returns the maximum segment length in a polyline vector // Returns the maximum segment length in a polyline vector
double GeoMapper::getMaxSegmentLength(const std::vector<GeoLib::Polyline*> &lines) const; double getMaxSegmentLength(const std::vector<GeoLib::Polyline*> &lines) const;
// Returns if a point p is within a bounding box defined by a and b // Returns if a point p is within a bounding box defined by a and b
bool isPntInBoundingBox(double ax, double ay, double bx, double by, double px, double py) const; bool isPntInBoundingBox(double ax, double ay, double bx, double by, double px, double py) const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment