<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -70,7 +70,6 @@ module CelticKnot
             next_edge
 
           else
-puts &quot;thread ------&gt;&quot;
             @thread = knot.new_thread
             @step = 0
 
@@ -109,13 +108,6 @@ puts &quot;thread ------&gt;&quot;
         difference = @edge.difference(far_edge, @direction)
         difference = 1.0 if difference == 0.0
 
-puts &quot;%d: %s %s&quot; % [@step, @node, @edge]
-puts &quot;   far edge:   %s&quot; % far_edge
-puts &quot;   parallel:   %s&quot; % parallel
-puts &quot;   vector:     %s&quot; % vector
-puts &quot;   midpoint:   %s&quot; % @midpoint
-puts &quot;   direction:  %s&quot; % @direction
-puts &quot;   difference: %f&quot; % difference
         @thread.add_connection(@midpoint, vector, 4.5 * difference, @edge.normal?)
 
         @edge.mark(@node, @direction)</diff>
      <filename>lib/celtic_knot/builder.rb</filename>
    </modified>
    <modified>
      <diff>@@ -78,19 +78,6 @@ module CelticKnot
       false
     end
 
-    def to_svg(options={})
-      color = options[:color] || &quot;black&quot;
-
-      width = impervious? ? 2 : 1
-      dasharray = ignore? ? &quot;3,3&quot; : &quot;none&quot;
-
-      svg = '&lt;path d=&quot;'
-      svg &lt;&lt; &quot;M #{n1.x} #{n1.y} L #{n2.x} #{n2.y}&quot;
-      svg &lt;&lt; '&quot; '
-      svg &lt;&lt; 'stroke=&quot;%s&quot; fill=&quot;none&quot; stroke-width=&quot;%s&quot; stroke-dasharray=&quot;%s&quot;' % [color, width, dasharray]
-      svg &lt;&lt; &quot; /&gt;&quot;
-    end
-
     private
 
       def mark_near(point, direction)</diff>
      <filename>lib/celtic_knot/edge.rb</filename>
    </modified>
    <modified>
      <diff>@@ -61,16 +61,6 @@ module CelticKnot
       return knot
     end
 
-    def to_svg(options={})
-      svg = &quot;&lt;g&gt;\n&quot;
-
-      edges = nodes.map { |node| node.edges }.flatten.uniq
-      edges.each { |edge| svg &lt;&lt; edge.to_svg(options) &lt;&lt; &quot;\n&quot; }
-      nodes.each { |node| svg &lt;&lt; node.to_svg(options) &lt;&lt; &quot;\n&quot; }
-
-      svg &lt;&lt; &quot;&lt;/g&gt;\n&quot;
-    end
-
     private
 
       def encircle_node(knot, node)
@@ -94,7 +84,6 @@ module CelticKnot
 
         mid1 = edge.virtual_midpoint(near, direction, :exit)
 
-n = 0
         loop do
           far = edge.other(near)
           parallel = far - near
@@ -102,8 +91,6 @@ n = 0
 
           break if thread.closes?(mid1, vector)
 
-n += 1
-puts &quot;%d: %s %s | %s %s | %s %s&quot; % [n, near, edge, mid1, vector, parallel, direction]
           thread.add_connection(mid1, vector)
 
           edge.mark(near, direction)</diff>
      <filename>lib/celtic_knot/graph.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,33 +15,5 @@ module CelticKnot
       @threads &lt;&lt; thread
       return thread
     end
-
-    def to_svg(options={})
-      svg = &quot;&lt;g&gt;\n&quot;
-
-      options = options.dup
-      width = options.delete(:width) || 2
-      fill_color = options.delete(:fill) || &quot;white&quot;
-      stroke_color = options.delete(:stroke) || &quot;black&quot;
-
-      stroke_opts = { :stroke =&gt; stroke_color, 'stroke-width' =&gt; width, :fill =&gt; &quot;none&quot; }.merge(options)
-      fill_opts = { :stroke =&gt; fill_color, 'stroke-width' =&gt; width-1, :fill =&gt; &quot;none&quot; }.merge(options)
-
-      curves.select { |c| !c.over }.each do |curve|
-        svg &lt;&lt; curve.to_svg(stroke_opts) &lt;&lt; &quot;\n&quot;
-        svg &lt;&lt; curve.to_svg(fill_opts) &lt;&lt; &quot;\n&quot;
-      end
-
-      curves.select { |c| c.over }.each do |curve|
-        svg &lt;&lt; curve.to_svg(stroke_opts) &lt;&lt; &quot;\n&quot;
-        svg &lt;&lt; curve.to_svg(fill_opts) &lt;&lt; &quot;\n&quot;
-      end
-
-      @marks.each do |id, pt|
-        svg &lt;&lt; '&lt;circle cx=&quot;%f&quot; cy=&quot;%f&quot; r=&quot;1&quot; fill=&quot;red&quot; stroke=&quot;red&quot; id=&quot;%s&quot; /&gt;' % [pt.x, pt.y, id]
-      end
-
-      svg &lt;&lt; &quot;&lt;/g&gt;\n&quot;
-    end
   end
 end</diff>
      <filename>lib/celtic_knot/knot.rb</filename>
    </modified>
    <modified>
      <diff>@@ -40,10 +40,5 @@ module CelticKnot
       nearest = 0 if nearest &gt;= edges.length
       return edges[nearest]
     end
-
-    def to_svg(options={})
-      color = options[:color] || &quot;black&quot;
-      '&lt;circle cx=&quot;%f&quot; cy=&quot;%f&quot; r=&quot;1&quot; fill=&quot;%s&quot; stroke=&quot;%s&quot; /&gt;' % [x, y, color, color]
-    end
   end
 end</diff>
      <filename>lib/celtic_knot/node.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>examples/knot2svg.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>afa29ac19a6e6792895c627ff49c6ea75a6bb9cb</id>
    </parent>
  </parents>
  <author>
    <name>Jamis Buck</name>
    <email>jamis@37signals.com</email>
  </author>
  <url>http://github.com/jamis/celtic_knot/commit/d450c776d8b34cf3627189bb939008f01d6b20b8</url>
  <id>d450c776d8b34cf3627189bb939008f01d6b20b8</id>
  <committed-date>2009-06-07T21:15:00-07:00</committed-date>
  <authored-date>2009-06-07T21:15:00-07:00</authored-date>
  <message>nix the svg output, since it wasn't working right

also pull some debugging output</message>
  <tree>9c6e55f4758ea3a5ec8323e6c00083f8ce2a21bc</tree>
  <committer>
    <name>Jamis Buck</name>
    <email>jamis@37signals.com</email>
  </committer>
</commit>
