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

Updated builds.

上级 90ab0b70
......@@ -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; }
}
}
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册