From 7c5136942608135950069815e1cc864a4da48fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 26 Apr 2011 12:31:35 +0100 Subject: [PATCH] Clean up Curve Time Parametrization example. --- examples/Scripts/CurveTimeParametrization.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/Scripts/CurveTimeParametrization.html b/examples/Scripts/CurveTimeParametrization.html index d818e3b9..247d9a68 100644 --- a/examples/Scripts/CurveTimeParametrization.html +++ b/examples/Scripts/CurveTimeParametrization.html @@ -14,13 +14,14 @@ var curve = path.curves[0]; function onMouseMove(event) { - modifyCurve(event.point, false, true); + modifyCurve(event.point, true); } - function modifyCurve(point, iteratively, remove) { + function modifyCurve(point, remove) { curve.segment2.point = point; var length = curve.length; var step = 10; + var iteratively = false; var num = Math.floor(length / step); var prev = 0; for (var i = 0, pos = 0; i <= num; i++, pos += step) { @@ -36,7 +37,7 @@ } } - // modifyCurve(new Point(400, 377), false, false); + // modifyCurve(new Point(400, 377), false);