提交 3141eb5b 编写于 作者: N Nicolas Debeissat

SVGLoader : correction for sweep_flag

上级 261379e6
......@@ -433,9 +433,8 @@ THREE.SVGLoader.prototype = {
var theta = svgAngle( 1, 0, ( x1p - cxp ) / rx, ( y1p - cyp ) / ry );
var delta = svgAngle( ( x1p - cxp ) / rx, ( y1p - cyp ) / ry, ( - x1p - cxp ) / rx, ( - y1p - cyp ) / ry );
delta = delta % ( Math.PI * 2 );
if ( ! sweep_flag ) delta -= 2 * Math.PI;
path.currentPath.absellipse( cx, cy, rx, ry, theta, theta + delta, theta + delta < theta, x_axis_rotation );
path.currentPath.absellipse( cx, cy, rx, ry, theta, theta + delta, sweep_flag === 0, x_axis_rotation );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册