chiark / gitweb /
remove workarounds for hideous subclass thing (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Nov 2017 15:15:10 +0000 (15:15 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Nov 2017 15:15:10 +0000 (15:15 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
moebius.py

index a6d616ad587f93a931210398cf7e977bbf5c0b79..d9888d2cea0a896b511dd417ab9d898e73120db0 100644 (file)
@@ -93,14 +93,14 @@ class MoebiusHalf:
     offset by offset perpendicular to the surface
      at the top (iu=t=0), in the y direction
     '''
-    p = MoebiusHalf.point(m, iu, t)
+    p = m.point(iu, t)
     if t == 0:
       dirn = m.edge.dirn(m._thetas[iu], extra_zeta=-tau/4)
     elif iu == m.nu:
-      return MoebiusHalf.point_offset(m, 0, t, offset)
+      return m.point_offset(0, t, offset)
     else:
-      vec_t = MoebiusHalf.point(m, iu,   t + 0.01) - p
-      vec_u = MoebiusHalf.point(m, iu+1, t)        - p
+      vec_t = m.point(iu,   t + 0.01) - p
+      vec_u = m.point(iu+1, t)        - p
       dirn =  np.cross(vec_u, vec_t)
     return p + offset * dirn / np.linalg.norm(dirn)