Skip to content
Snippets Groups Projects
Commit 3f121060 authored by Tom Fischer's avatar Tom Fischer
Browse files

adjusted search epsilon to sqrt(std::numeric_limits<double>::epsilon()))

parent 3fa6fcc7
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ public: ...@@ -72,7 +72,7 @@ public:
virtual void addPointVec(std::vector<Point*>* points, virtual void addPointVec(std::vector<Point*>* points,
std::string &name, std::string &name,
std::map<std::string, std::size_t>* pnt_names = NULL, std::map<std::string, std::size_t>* pnt_names = NULL,
double eps = sqrt(std::numeric_limits<double>::min())); double eps = sqrt(std::numeric_limits<double>::epsilon()));
/** copies the pointers to the points in the given vector to the PointVec of the provided name. /** copies the pointers to the points in the given vector to the PointVec of the provided name.
* The pointers are managed by the GEOObjects, i.e. GEOObjects will delete the Points at the * The pointers are managed by the GEOObjects, i.e. GEOObjects will delete the Points at the
......
...@@ -72,7 +72,7 @@ public: ...@@ -72,7 +72,7 @@ public:
*/ */
PointVec (const std::string& name, std::vector<Point*>* points, PointVec (const std::string& name, std::vector<Point*>* points,
std::map<std::string, std::size_t>* name_id_map = NULL, std::map<std::string, std::size_t>* name_id_map = NULL,
PointType type = PointVec::POINT, double rel_eps = sqrt(std::numeric_limits<double>::min())); PointType type = PointVec::POINT, double rel_eps = sqrt(std::numeric_limits<double>::epsilon()));
/** Destructor deletes all Points of this PointVec. */ /** Destructor deletes all Points of this PointVec. */
virtual ~PointVec (); virtual ~PointVec ();
......
...@@ -56,7 +56,7 @@ public slots: ...@@ -56,7 +56,7 @@ public slots:
virtual void addPointVec(std::vector<GeoLib::Point*>* points, virtual void addPointVec(std::vector<GeoLib::Point*>* points,
std::string &name, std::string &name,
std::map<std::string, std::size_t>* name_pnt_id_map = NULL, std::map<std::string, std::size_t>* name_pnt_id_map = NULL,
double eps = sqrt(std::numeric_limits<double>::min())); double eps = sqrt(std::numeric_limits<double>::epsilon()));
virtual bool appendPointVec(const std::vector<GeoLib::Point*> &points, virtual bool appendPointVec(const std::vector<GeoLib::Point*> &points,
const std::string &name, const std::string &name,
std::vector<std::size_t>* ids = NULL); std::vector<std::size_t>* ids = NULL);
......
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