Skip to content

Commit

Permalink
Disable line-ellipse and ellipse-ellipse intersection detection until…
Browse files Browse the repository at this point in the history
… we fix numerical stability issues, fixes #280
  • Loading branch information
tdewolff committed Mar 13, 2024
1 parent e5d40bc commit b2b36c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions path_intersection.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ func (p *Path) Settle(fillRule FillRule) *Path {
return flattenCubicBezier(p0, p1, p2, p3, Tolerance)
}
arc := func(start Point, rx, ry, phi float64, large, sweep bool, end Point) *Path {
if !Equal(rx, ry) {
return flattenEllipticArc(start, rx, ry, phi, large, sweep, end, Tolerance)
}
return xmonotoneEllipticArc(start, rx, ry, phi, large, sweep, end)
//if !Equal(rx, ry) {
return flattenEllipticArc(start, rx, ry, phi, large, sweep, end, Tolerance)
//}
//return xmonotoneEllipticArc(start, rx, ry, phi, large, sweep, end)
}
p = p.replace(nil, quad, cube, arc)

Expand Down

0 comments on commit b2b36c2

Please sign in to comment.