Make sure circles have at least 16 segments.

Before this commit, with the highest chord tolerance settings, circles
would render as octagons, which confused a lot of people. See #295.
pull/643/head
phkahler 2020-06-04 19:04:42 -04:00 committed by whitequark
parent e83e48392e
commit c876104714
2 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ void SBezier::MakePwlInitialWorker(List<Vector> *l, double ta, double tb, double
});
double step = 1.0/SS.GetMaxSegments();
if((tb - ta) < step || d < chordTol) {
if( ((tb - ta) < step || d < chordTol) && ((tb-ta) < 0.2) ) {
// A previous call has already added the beginning of our interval.
l->Add(&pb);
} else {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB