|
@@ -7,12 +7,25 @@
|
|
|
var THREE = { REVISION: '69dev' };
|
|
|
|
|
|
// browserify support
|
|
|
+
|
|
|
if ( typeof module === 'object' ) {
|
|
|
|
|
|
module.exports = THREE;
|
|
|
|
|
|
}
|
|
|
|
|
|
+// polyfills
|
|
|
+
|
|
|
+if ( Math.sign === undefined ) {
|
|
|
+
|
|
|
+ Math.sign = function ( x ) {
|
|
|
+
|
|
|
+ return ( x < 0 ) ? - 1 : ( x > 0 ) ? 1 : 0;
|
|
|
+
|
|
|
+ };
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
// GL STATE CONSTANTS
|
|
|
|
|
|
THREE.CullFaceNone = 0;
|
|
@@ -6436,12 +6449,6 @@ THREE.Math = {
|
|
|
|
|
|
},
|
|
|
|
|
|
- sign: function ( x ) {
|
|
|
-
|
|
|
- return ( x < 0 ) ? - 1 : ( x > 0 ) ? 1 : 0;
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
degToRad: function () {
|
|
|
|
|
|
var degreeToRadiansFactor = Math.PI / 180;
|
|
@@ -30978,7 +30985,6 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
|
|
|
function getBevelVec( inPt, inPrev, inNext ) {
|
|
|
|
|
|
var EPSILON = 0.0000000001;
|
|
|
- var sign = THREE.Math.sign;
|
|
|
|
|
|
// computes for inPt the corresponding point inPt' on a new contour
|
|
|
// shiftet by 1 unit (length of normalized vector) to the left
|
|
@@ -31044,7 +31050,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
|
|
|
if ( v_prev_x < - EPSILON ) {
|
|
|
if ( v_next_x < - EPSILON ) { direction_eq = true; }
|
|
|
} else {
|
|
|
- if ( sign(v_prev_y) == sign(v_next_y) ) { direction_eq = true; }
|
|
|
+ if ( Math.sign(v_prev_y) == Math.sign(v_next_y) ) { direction_eq = true; }
|
|
|
}
|
|
|
}
|
|
|
|