From 2d4f81cddb445a3a1443aab48e755c8f8c7055c9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 4 Nov 2017 23:10:28 +0000 Subject: [PATCH] rename n_foo to nfoo Signed-off-by: Ian Jackson --- moebius.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/moebius.py b/moebius.py index 7d7f202..ad0f2e0 100644 --- a/moebius.py +++ b/moebius.py @@ -52,7 +52,7 @@ class Twirler(ParametricCircle): return cos(zeta) * r + sin(zeta) * tw._axis class MoebiusHalf: - def __init__(m, n_u): + def __init__(m, nu): ''' MoebiusHalf().edge is a Twirler for the edge, expecting theta = u * tau (see MoebiusHalf().point) @@ -60,7 +60,7 @@ class MoebiusHalf: ''' m.edge = Twirler(origin, unit_z, unit_x, -2, tau/2) m.midline = Twirler(-unit_z, unit_z, unit_y, -0.5, 0) - m._beziers = [ m._bezier(u) for u in np.linspace(0, 1, n_u+1) ] + m._beziers = [ m._bezier(u) for u in np.linspace(0, 1, nu+1) ] def _bezier(m,u): theta = u * tau cp = [None] * 4 @@ -71,7 +71,7 @@ class MoebiusHalf: return BezierSegment(cp) def point(m, ix_u, t): ''' - 0 <= ix_u <= n_u meaning 0 <= u <= 1 + 0 <= ix_u <= nu meaning 0 <= u <= 1 along the extent 0 and 1 are both the top half of the flat traverse 0.5 is the bottom half of the flat traverse -- 2.30.2