diff options
-rw-r--r-- | modules/geometry_utils.py | 4 |
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) |