 
 # Here's a quick hack for switching traces on and off.
 
-trace = (s) -> #console.log s
+trace = (s) -> #console.log s()
 
 
 # ----

    # in which `t` is divided into three new triangles with `p` as a common
    # vertex.
    subdivide = (T, t, p) ->
      trace "subdivide [#{T.triangulation__.toSeq().join ', '}], #{t}, #{p}"
      [a, b, c] = t.vertices()
      new T.constructor(
        T.triangulation__.minus(a,b,c).plus(a,b,p).plus(b,c,p).plus(c,a,p),

      else if x = seq([[a, b], [b, c], [c, a]]).find((e) => @third__.get(e)?]
        [f, g] = x
        h = @third__.get x
        trace -> "  Error in plus [#{@toSeq()?.join ', '}], (#{a}, #{b}, #{c})"
        throw new Error "Orientation mismatch."
      else
        triangles = @triangles__.plus tri a, b, c
