Path# rename #pointsToCurves to #simplify and #curvesToPoints to #flatten.

This commit is contained in:
Jonathan Puckey 2011-06-20 19:17:07 +02:00
parent 322a427208
commit a2a8939d5d
5 changed files with 24 additions and 19 deletions

View file

@ -22,12 +22,12 @@
var length = curve.length;
var step = 10;
var iteratively = false;
var curvesToPoints = true;
var flatten = true;
var num = Math.floor(length / step);
var prev = 0;
if (curvesToPoints) {
if (flatten) {
var clone = path.clone();
clone.curvesToPoints(step);
clone.flatten(step);
for (var i = 0; i < clone.segments.length; i++) {
var point = clone.segments[i].point;
var circle = new Path.Circle(point, step / 2);