Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrtsell <morgan@mortsell.com>2011-10-02 21:02:02 +0400
committerrtsell <morgan@mortsell.com>2011-10-02 21:02:02 +0400
commit0c6808b98574769a7d0b45239958d4091a000fdb (patch)
treee691f8a264c7ab9de30e5c7271a65df9b54b11ce /modules
parent5812b335f33dbc55b615606650f887a8b204bde5 (diff)
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.]]
Diffstat (limited to 'modules')
-rw-r--r--modules/geometry_utils.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/geometry_utils.py b/modules/geometry_utils.py
index e928ace2..2a574b5d 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)