lib/fitting.rb in xrvg-0.0.5 vs lib/fitting.rb in xrvg-0.0.6

- old
+ new

@@ -143,16 +143,16 @@ # error is max error between points in pointlist and points sampled from bezier with parameters def Fitting.error( bezier, pointlist, parameters ) maxerror = 0.0 container = V2D[] [pointlist, parameters].forzip do |point, parameter| - Trace("point #{point.inspect} parameter #{parameter}") + # Trace("point #{point.inspect} parameter #{parameter}") error = (point - bezier.point( parameter, container, :parameter )).r if error > maxerror maxerror = error end end - Trace("Fitting.error #{maxerror}") + # Trace("Fitting.error #{maxerror}") return maxerror end # iterate method compute new bezier parameters from pointlist and previous bezier parameters #