|
@@ -120,7 +120,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- // Variables initialization
|
|
|
|
|
|
+ // Variables initialization
|
|
|
|
|
|
var ahole, h, hl; // looping of holes
|
|
var ahole, h, hl; // looping of holes
|
|
var scope = this;
|
|
var scope = this;
|
|
@@ -132,7 +132,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
|
|
var vertices = shapePoints.shape;
|
|
var vertices = shapePoints.shape;
|
|
var holes = shapePoints.holes;
|
|
var holes = shapePoints.holes;
|
|
|
|
|
|
- var reverse = ! THREE.Shape.Utils.isClockWise( vertices ) ;
|
|
|
|
|
|
+ var reverse = ! THREE.Shape.Utils.isClockWise( vertices );
|
|
|
|
|
|
if ( reverse ) {
|
|
if ( reverse ) {
|
|
|
|
|
|
@@ -359,8 +359,8 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
|
|
z = bevelThickness * ( 1 - t );
|
|
z = bevelThickness * ( 1 - t );
|
|
|
|
|
|
//z = bevelThickness * 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
|
|
// contract shape
|
|
|
|
|
|
@@ -459,7 +459,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
|
|
t = b / bevelSegments;
|
|
t = b / bevelSegments;
|
|
z = bevelThickness * ( 1 - t );
|
|
z = bevelThickness * ( 1 - t );
|
|
//bs = bevelSize * ( 1-Math.sin ( ( 1 - t ) * Math.PI/2 ) );
|
|
//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
|
|
// contract shape
|
|
|
|
|
|
@@ -514,7 +514,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
|
|
|
|
|
|
if ( bevelEnabled ) {
|
|
if ( bevelEnabled ) {
|
|
|
|
|
|
- var layer = 0 ; // steps + 1
|
|
|
|
|
|
+ var layer = 0; // steps + 1
|
|
var offset = vlen * layer;
|
|
var offset = vlen * layer;
|
|
|
|
|
|
// Bottom faces
|
|
// Bottom faces
|