|
@@ -44,7 +44,7 @@ Object.assign( Curve.prototype, {
|
|
// Virtual base class method to overwrite and implement in subclasses
|
|
// Virtual base class method to overwrite and implement in subclasses
|
|
// - t [0 .. 1]
|
|
// - t [0 .. 1]
|
|
|
|
|
|
- getPoint: function ( t ) {
|
|
|
|
|
|
+ getPoint: function () {
|
|
|
|
|
|
console.warn( "THREE.Curve: Warning, getPoint() not implemented!" );
|
|
console.warn( "THREE.Curve: Warning, getPoint() not implemented!" );
|
|
return null;
|
|
return null;
|
|
@@ -131,7 +131,7 @@ Object.assign( Curve.prototype, {
|
|
|
|
|
|
for ( p = 1; p <= divisions; p ++ ) {
|
|
for ( p = 1; p <= divisions; p ++ ) {
|
|
|
|
|
|
- current = this.getPoint ( p / divisions );
|
|
|
|
|
|
+ current = this.getPoint( p / divisions );
|
|
sum += current.distanceTo( last );
|
|
sum += current.distanceTo( last );
|
|
cache.push( sum );
|
|
cache.push( sum );
|
|
last = current;
|
|
last = current;
|
|
@@ -144,7 +144,7 @@ Object.assign( Curve.prototype, {
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
- updateArcLengths: function() {
|
|
|
|
|
|
+ updateArcLengths: function () {
|
|
|
|
|
|
this.needsUpdate = true;
|
|
this.needsUpdate = true;
|
|
this.getLengths();
|
|
this.getLengths();
|
|
@@ -237,7 +237,7 @@ Object.assign( Curve.prototype, {
|
|
// 2 points a small delta apart will be used to find its gradient
|
|
// 2 points a small delta apart will be used to find its gradient
|
|
// which seems to give a reasonable approximation
|
|
// which seems to give a reasonable approximation
|
|
|
|
|
|
- getTangent: function( t ) {
|
|
|
|
|
|
+ getTangent: function ( t ) {
|
|
|
|
|
|
var delta = 0.0001;
|
|
var delta = 0.0001;
|
|
var t1 = t - delta;
|
|
var t1 = t - delta;
|