 
 test = ->
   rnd = -> Math.floor(Math.random() * 100)
-  t = Sequence.range(1, 1000).reduce delaunayTriangulation(),  (s, i) ->
+  t = Sequence.range(1, 200).reduce delaunayTriangulation(),  (s, i) ->
     s.plus new Point2d rnd(), rnd()
 
   Sequence.each t, (triangle) ->

      else
        t = @containingTriangle p
        [a, b, c] = t.vertices()
        seq([a, b], [b, c], [c, a]).reduce subdivide(this, t, p), (T, [u, v]) ->
          if T.sideOf(u, v, p) == 0
            w = T.third v, u
            resolve doFlips flip(T, u, v), seq [u, w], [w, v]
          else
            resolve doFlips T, seq [u, v]


        if t.mustFlip r, s
          console.log "Delaunay condition fails for #{u},#{v},#{w},#{x})", ->

#test()
