diff --git a/modules/geometry_utils.py b/modules/geometry_utils.py index e928ace24df6138615673576974d00dd010ae432..2a574b5dfd8899bf6376fc46e3d0746dd400eb56 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)