From: Ian Jackson Date: Sun, 5 Nov 2017 15:15:10 +0000 (+0000) Subject: remove workarounds for hideous subclass thing (nfc) X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=44e89c2d7d7b20f067e4d208fce0757eab9b9aff;p=moebius3.git remove workarounds for hideous subclass thing (nfc) Signed-off-by: Ian Jackson --- diff --git a/moebius.py b/moebius.py index a6d616a..d9888d2 100644 --- a/moebius.py +++ b/moebius.py @@ -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)