chiark / gitweb /
rename n_foo to nfoo
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 4 Nov 2017 23:10:28 +0000 (23:10 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 4 Nov 2017 23:10:28 +0000 (23:10 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
moebius.py

index 7d7f2020fe2b2817b39bf8a7ea2ac0d37529b2de..ad0f2e042ce0f5ba8e4d1150ea428a45dd792b81 100644 (file)
@@ -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 <= n  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