提交 c14b259b 编写于 作者: M Mr.doob

Clean up.

上级 70725ef9
......@@ -33,7 +33,7 @@ if ( typeof module === 'object' ) {
var currTime = Date.now(), timeToCall = Math.max( 0, 16 - ( currTime - lastTime ) );
var id = self.setTimeout( function () {
callback( currTime + timeToCall )
callback( currTime + timeToCall );
}, timeToCall );
lastTime = currTime + timeToCall;
......@@ -47,7 +47,7 @@ if ( typeof module === 'object' ) {
self.cancelAnimationFrame = function ( id ) {
self.clearTimeout( id )
self.clearTimeout( id );
};
......
......@@ -338,7 +338,7 @@ THREE.Path.prototype.getPoints = function( divisions, closedPath ) {
for ( j = 1; j <= n; j ++ ) {
points.push( spline.getPointAt( j / n ) ) ;
points.push( spline.getPointAt( j / n ) );
}
......
......@@ -120,7 +120,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
}
// Variables initialization
// Variables initialization
var ahole, h, hl; // looping of holes
var scope = this;
......@@ -132,7 +132,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
var vertices = shapePoints.shape;
var holes = shapePoints.holes;
var reverse = ! THREE.Shape.Utils.isClockWise( vertices ) ;
var reverse = ! THREE.Shape.Utils.isClockWise( vertices );
if ( reverse ) {
......@@ -359,8 +359,8 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
z = bevelThickness * ( 1 - t );
//z = bevelThickness * t;
bs = bevelSize * ( Math.sin ( t * Math.PI / 2 ) ) ; // curved
//bs = bevelSize * t ; // linear
bs = bevelSize * ( Math.sin ( t * Math.PI / 2 ) ); // curved
//bs = bevelSize * t; // linear
// contract shape
......@@ -459,7 +459,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
t = b / bevelSegments;
z = bevelThickness * ( 1 - t );
//bs = bevelSize * ( 1-Math.sin ( ( 1 - t ) * Math.PI/2 ) );
bs = bevelSize * Math.sin ( t * Math.PI / 2 ) ;
bs = bevelSize * Math.sin ( t * Math.PI / 2 );
// contract shape
......@@ -514,7 +514,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
if ( bevelEnabled ) {
var layer = 0 ; // steps + 1
var layer = 0; // steps + 1
var offset = vlen * layer;
// Bottom faces
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册