From 26da646258c81a694fd042227dffc2d57964895c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 4 Nov 2017 22:14:46 +0000 Subject: [PATCH] show Half nature Signed-off-by: Ian Jackson --- check.py | 4 ++-- moebius.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/check.py b/check.py index 6bcf1a1..226825c 100644 --- a/check.py +++ b/check.py @@ -10,7 +10,7 @@ from moebius import * n_u = 40 -m = Moebius(n_u) +m = MoebiusHalf(n_u) ts = np.linspace(0, 1, 40) @@ -24,4 +24,4 @@ for ix_u in range(0, n_u): for t in ts: c3 = curve( color=color.yellow, pos = [ m.point(ix_u, t) - for ix_u in range(0, n_u+1) ] ) + for ix_u in range(0, n_u/2+1) ] ) diff --git a/moebius.py b/moebius.py index 8986fd2..f40ed01 100644 --- a/moebius.py +++ b/moebius.py @@ -51,11 +51,11 @@ class Twirler(ParametricCircle): r = tw.radius(theta) return cos(zeta) * r + sin(zeta) * tw._axis -class Moebius: +class MoebiusHalf: def __init__(m, n_u): ''' - Moebius().edge is a Twirler for the edge, - expecting theta = u * tau (see Moebius().point) + MoebiusHalf().edge is a Twirler for the edge, + expecting theta = u * tau (see MoebiusHalf().point) with dirn pointing into the surface ''' m.edge = Twirler(origin, unit_z, unit_x, -2, tau/2) -- 2.30.2