chiark / gitweb /
bugfixes
[moebius3.git] / check.py
index 21c33d1643cc956866633b75d5fbefb51cd93358..b0374dcb1d45f79f314764af43755531302bfbea 100644 (file)
--- a/check.py
+++ b/check.py
@@ -1,13 +1,23 @@
+
+import signal
+signal.signal(signal.SIGINT, signal.SIG_DFL)
+
 from visual import *
 from bezier import BezierSegment
-from moebius import Moebius
 import numpy as np
 
+from moebius import *
+
 n_u = 10
 
 m = Moebius(10)
 
 ts = arange(0, 1, 0.1)
 
-for ix_u in range(0, n_u+1):
-  curve( pos = [ m.point(ix_u, t) for t in ts ] )
+thetas = arange(0, tau, 20)
+
+c0 = curve( color=color.red, pos = [ m.edge.point(th) for th in thetas ] )
+c1 = curve( color=color.blue, pos = [ m.midline.point(th) for th in thetas ] )
+
+for ix_u in range(0, n_u):
+  c2 = curve( pos = [ m.point(ix_u, t) for t in ts ] )