提交 8dcd65eb 编写于 作者: J Joshua Koo 提交者: Mr.doob

CurvePath.getPoints() for Arcs resolution should be doubled (#9168)

* CurvePath.getPoints() for Arcs resolution should be doubled

- like previous behaviour
- see #9079

* CurvePath: increase resolution of spline curves
上级 50ad44c3
......@@ -163,7 +163,12 @@ THREE.CurvePath.prototype = Object.assign( Object.create( THREE.Curve.prototype
for ( var i = 0, curves = this.curves; i < curves.length; i ++ ) {
var curve = curves[ i ];
var pts = curve.getPoints( curve instanceof THREE.LineCurve ? 1 : divisions );
var resolution = curve instanceof THREE.EllipseCurve ? divisions * 2
: curve instanceof THREE.LineCurve ? 1
: curve instanceof THREE.SplineCurve ? divisions * curves.points.length
: divisions;
var pts = curve.getPoints( resolution );
for ( var j = 0; j < pts.length; j++ ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册