修复:圆弧显示错误

test-react-refresh
ChenX 3 years ago
parent a374beafd8
commit 5938ddc2e2

@ -27,7 +27,7 @@ export class Shape2 extends Shape
tempArc.Radius = curve.xRadius;
//根据圆弧的角度,来确定绘制个数
let count = Math.max(2, Math.ceil((tempArc.AllAngle) / Math.PI) * divisions);
let count = Math.max(2, Math.abs(Math.ceil((tempArc.AllAngle) / Math.PI)) * divisions);
resolution = clamp(tempArc.Length / 20, count, 60);
}

Loading…
Cancel
Save