mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-10 10:25:36 +01:00
fix arc approximation algorithm
This commit is contained in:
parent
41575f8464
commit
47ae85b29f
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ TCAD.workbench.approxArc = function(ao, bo, c, k) {
|
|||
var step = abAngle / k;
|
||||
var angle = Math.atan2(a.y, a.x) + step;
|
||||
|
||||
for (var i = 0; i < k - 2; ++i) {
|
||||
for (var i = 0; i < k - 1; ++i) {
|
||||
points.push(new TCAD.Vector(c.x + r*Math.cos(angle), c.y + r*Math.sin(angle)));
|
||||
angle += step;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue