提交 6779c70d 编写于 作者: M Mugen87

CurveExtras: Clean up

上级 a60039f0
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
return new THREE.Vector3( x, y, z ).multiplyScalar( this.scale ); return new THREE.Vector3( x, y, z ).multiplyScalar( this.scale );
} };
// Viviani's Curve // Viviani's Curve
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
this.scale = ( s === undefined ) ? 10 : s; this.scale = ( s === undefined ) ? 10 : s;
}; }
TrefoilKnot.prototype = Object.create( THREE.Curve.prototype ); TrefoilKnot.prototype = Object.create( THREE.Curve.prototype );
TrefoilKnot.prototype.constructor = TrefoilKnot; TrefoilKnot.prototype.constructor = TrefoilKnot;
...@@ -152,7 +152,7 @@ ...@@ -152,7 +152,7 @@
this.scale = ( s === undefined ) ? 10 : s; this.scale = ( s === undefined ) ? 10 : s;
}; }
TorusKnot.prototype = Object.create( THREE.Curve.prototype ); TorusKnot.prototype = Object.create( THREE.Curve.prototype );
TorusKnot.prototype.constructor = TorusKnot; TorusKnot.prototype.constructor = TorusKnot;
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
this.scale = ( s === undefined ) ? 10 : s; this.scale = ( s === undefined ) ? 10 : s;
}; }
CinquefoilKnot.prototype = Object.create( THREE.Curve.prototype ); CinquefoilKnot.prototype = Object.create( THREE.Curve.prototype );
CinquefoilKnot.prototype.constructor = CinquefoilKnot; CinquefoilKnot.prototype.constructor = CinquefoilKnot;
...@@ -204,7 +204,7 @@ ...@@ -204,7 +204,7 @@
this.scale = ( s === undefined ) ? 10 : s; this.scale = ( s === undefined ) ? 10 : s;
}; }
TrefoilPolynomialKnot.prototype = Object.create( THREE.Curve.prototype ); TrefoilPolynomialKnot.prototype = Object.create( THREE.Curve.prototype );
TrefoilPolynomialKnot.prototype.constructor = TrefoilPolynomialKnot; TrefoilPolynomialKnot.prototype.constructor = TrefoilPolynomialKnot;
...@@ -234,7 +234,7 @@ ...@@ -234,7 +234,7 @@
this.scale = ( s === undefined ) ? 1 : s; this.scale = ( s === undefined ) ? 1 : s;
}; }
FigureEightPolynomialKnot.prototype = Object.create( THREE.Curve.prototype ); FigureEightPolynomialKnot.prototype = Object.create( THREE.Curve.prototype );
FigureEightPolynomialKnot.prototype.constructor = FigureEightPolynomialKnot; FigureEightPolynomialKnot.prototype.constructor = FigureEightPolynomialKnot;
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
this.scale = ( s === undefined ) ? 40 : s; this.scale = ( s === undefined ) ? 40 : s;
}; }
DecoratedTorusKnot4a.prototype = Object.create( THREE.Curve.prototype ); DecoratedTorusKnot4a.prototype = Object.create( THREE.Curve.prototype );
DecoratedTorusKnot4a.prototype.constructor = DecoratedTorusKnot4a; DecoratedTorusKnot4a.prototype.constructor = DecoratedTorusKnot4a;
...@@ -280,7 +280,7 @@ ...@@ -280,7 +280,7 @@
this.scale = ( s === undefined ) ? 40 : s; this.scale = ( s === undefined ) ? 40 : s;
}; }
DecoratedTorusKnot4b.prototype = Object.create( THREE.Curve.prototype ); DecoratedTorusKnot4b.prototype = Object.create( THREE.Curve.prototype );
DecoratedTorusKnot4b.prototype.constructor = DecoratedTorusKnot4b; DecoratedTorusKnot4b.prototype.constructor = DecoratedTorusKnot4b;
...@@ -303,7 +303,7 @@ ...@@ -303,7 +303,7 @@
this.scale = ( s === undefined ) ? 40 : s; this.scale = ( s === undefined ) ? 40 : s;
}; }
DecoratedTorusKnot5a.prototype = Object.create( THREE.Curve.prototype ); DecoratedTorusKnot5a.prototype = Object.create( THREE.Curve.prototype );
DecoratedTorusKnot5a.prototype.constructor = DecoratedTorusKnot5a; DecoratedTorusKnot5a.prototype.constructor = DecoratedTorusKnot5a;
...@@ -326,7 +326,7 @@ ...@@ -326,7 +326,7 @@
this.scale = ( s === undefined ) ? 40 : s; this.scale = ( s === undefined ) ? 40 : s;
}; }
DecoratedTorusKnot5c.prototype = Object.create( THREE.Curve.prototype ); DecoratedTorusKnot5c.prototype = Object.create( THREE.Curve.prototype );
DecoratedTorusKnot5c.prototype.constructor = DecoratedTorusKnot5c; DecoratedTorusKnot5c.prototype.constructor = DecoratedTorusKnot5c;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册