From b504ed84195c12d6b02ea7dd23b12b74458e4ba7 Mon Sep 17 00:00:00 2001
From: Karsten Rink <karsten.rink@ufz.de>
Date: Wed, 20 Aug 2014 10:41:55 +0200
Subject: [PATCH] renamed vis method

---
 GeoLib/BoundingSphere.cpp | 2 +-
 GeoLib/BoundingSphere.h   | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/GeoLib/BoundingSphere.cpp b/GeoLib/BoundingSphere.cpp
index db4dddb3908..4067c805dc8 100644
--- a/GeoLib/BoundingSphere.cpp
+++ b/GeoLib/BoundingSphere.cpp
@@ -140,7 +140,7 @@ double BoundingSphere::sqrPointDist(const GeoLib::Point pnt) const
 	return MathLib::sqrDist(_center.getCoords(), pnt.getCoords())-(_radius*_radius);
 }
 
-std::vector<GeoLib::Point*>* BoundingSphere::getSpherePoints(std::size_t n_points) const
+std::vector<GeoLib::Point*>* BoundingSphere::getRandomSpherePoints(std::size_t n_points) const
 {
 	std::vector<GeoLib::Point*> *pnts = new std::vector<GeoLib::Point*>;
 	pnts->reserve(n_points);
diff --git a/GeoLib/BoundingSphere.h b/GeoLib/BoundingSphere.h
index 2650edff4a6..4163a16e1de 100644
--- a/GeoLib/BoundingSphere.h
+++ b/GeoLib/BoundingSphere.h
@@ -54,7 +54,8 @@ public:
 	/// Returns the squared distance of a point from the sphere (for points within the sphere distance is negative)
 	double sqrPointDist(const GeoLib::Point pnt) const;
 
-	std::vector<GeoLib::Point*>* getSpherePoints(std::size_t n_points) const;
+	/// Creates n_points random points located on the surface of the sphere (useful for visualisation)
+	std::vector<GeoLib::Point*>* getRandomSpherePoints(std::size_t n_points) const;
 
 private:
 	/**
-- 
GitLab