chiark / gitweb /
helixish: attempt at the whole thing
[moebius3.git] / visual
diff --git a/visual b/visual
index f0b9b49be253e60d5fc15507f11a86cdde57475a..d623bfb6c14f42f5ea9c2f6097ebd22a9927610e 100755 (executable)
--- a/visual
+++ b/visual
@@ -17,8 +17,8 @@ scene.fov = 1E-3
 from moebius import *
 from moedebug import *
 
-nv = 40
-nw = 40
+nv = 20
+nw = 80
 
 class Visdebug(BaseVisdebug):
   def curve(vd, fn, color=color.yellow):
@@ -40,7 +40,7 @@ class Visdebug(BaseVisdebug):
     rate(1E-8)
 
 dbg_file(sys.stderr)
-vdbg_enable(Visdebug())
+#vdbg_enable(Visdebug())
 
 m = Moebius(nv, nw)
 
@@ -53,8 +53,10 @@ ws = range(0, nw+1)
 #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 v in vs:
-  c2 = curve( color=color.blue, pos = [ m.point(v,w) for w in ws ] )
+for vi in range(0, len(vs)):
+  v= vs[vi]
+  c2 = curve( color= (color.blue if vi == int(2*nv/3) else (0,0,0.5)),
+              pos = [ m.point(v,w) for w in ws ] )
 
 #for w in ws:
 #  c3 = curve( color=color.blue, pos = [ m.point(v,w) for v in vs ] )