|
@@ -93,6 +93,15 @@ THREE.CurvePath.prototype = Object.assign( Object.create( THREE.Curve.prototype
|
|
|
|
|
|
},
|
|
|
|
|
|
+ // cacheLengths must be recalculated.
|
|
|
+ updateArcLengths: function () {
|
|
|
+
|
|
|
+ this.needsUpdate = true;
|
|
|
+ this.cacheLengths = null;
|
|
|
+ this.getLengths();
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
// Compute lengths and cache them
|
|
|
// We cannot overwrite getLengths() because UtoT mapping uses it.
|
|
|
|