chiark / gitweb /
1f9875d35d8f6f2d36324eda4abfb86af2556dc3
[moebius3.git] / check.py
1
2 import signal
3 signal.signal(signal.SIGINT, signal.SIG_DFL)
4
5 from visual import *
6 from bezier import BezierSegment
7 import numpy as np
8
9 from moebius import *
10
11 nv = 40
12 nw = 40
13
14 m = Moebius(nv, nw)
15
16 vs = range(0, nv+1)
17 ws = range(0, nw+1)
18
19 #ts = np.linspace(0, 1, 40)
20
21 #thetas = np.linspace(0, tau, 40)
22 #c0 = curve( color=color.red, pos = [ m.edge.point(th) for th in thetas ] )
23 #c1 = curve( color=color.blue, pos = [ m.midline.point(th) for th in thetas ] )
24
25 for v in vs:
26   c2 = curve( pos = [ m.point(v,w) for w in ws ] )
27
28 for w in ws:
29   c3 = curve( color=color.yellow, pos = [ m.point(v,w) for v in vs ] )