|
@@ -361,11 +361,8 @@ ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
|
|
|
//for ( b = bevelSegments; b > 0; b -- ) {
|
|
|
|
|
|
t = b / bevelSegments;
|
|
|
- z = bevelThickness * Math.cos ( t * Math.PI / 2 ); // curved
|
|
|
- //z = bevelThickness * ( 1 - t ); //linear
|
|
|
-
|
|
|
- bs = bevelSize * Math.sin ( t * Math.PI / 2 ); // curved
|
|
|
- //bs = bevelSize * t; // linear
|
|
|
+ z = bevelThickness * Math.cos( t * Math.PI / 2 );
|
|
|
+ bs = bevelSize * Math.sin( t * Math.PI / 2 );
|
|
|
|
|
|
// contract shape
|
|
|
|
|
@@ -462,11 +459,8 @@ ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
|
|
|
for ( b = bevelSegments - 1; b >= 0; b -- ) {
|
|
|
|
|
|
t = b / bevelSegments;
|
|
|
- z = bevelThickness * Math.cos ( t * Math.PI / 2 ); // curved
|
|
|
- //z = bevelThickness * ( 1 - t ); //linear
|
|
|
-
|
|
|
- bs = bevelSize * Math.sin ( t * Math.PI / 2 );
|
|
|
- //bs = bevelSize * t; // linear
|
|
|
+ z = bevelThickness * Math.cos ( t * Math.PI / 2 );
|
|
|
+ bs = bevelSize * Math.sin( t * Math.PI / 2 );
|
|
|
|
|
|
// contract shape
|
|
|
|