From 0c6808b98574769a7d0b45239958d4091a000fdb Mon Sep 17 00:00:00 2001
From: rtsell <morgan@mortsell.com>
Date: Sun, 2 Oct 2011 17:02:02 +0000
Subject: [PATCH] Cursor Control 0.7.0 Refactoring: Merged from three into one
 addon Refactoring: Renamed module 'Control' to 'Target' New features: Added
 'Cursor Delta' Bugfix: Cursor History now tracks even when its panel is
 folded.

[[Split portion of a mixed commit.]]
---
 modules/geometry_utils.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/geometry_utils.py b/modules/geometry_utils.py
index e928ace24..2a574b5df 100644
--- a/modules/geometry_utils.py
+++ b/modules/geometry_utils.py
@@ -125,6 +125,7 @@ class G3:
         except(RuntimeError, TypeError):
             return None
 
+    # Poor mans approach of finding center of circle
     @classmethod
     def circumCenter(cls, fv):
         fm = G3.medianTriangle(fv)
@@ -144,11 +145,12 @@ class G3:
             return None
         return G3.closestP2L(p, c, c+n)
 
+    # Poor mans approach of finding center of sphere
     @classmethod
     def centerOfSphere(cls, fv):
         try:
             if len(fv)==3:
-                return G3.circumCenter(fv)
+                return G3.circumCenter(fv) # Equator
             if len(fv)==4:
                 fv3 = [fv[0],fv[1],fv[2]]
                 c1 = G3.circumCenter(fv)
-- 
GitLab