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

Clean up.

上级 07c50858
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册