Skip to content
Snippets Groups Projects
Commit 0c6808b9 authored by rtsell's avatar rtsell
Browse files

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.]]
parent 5812b335
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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