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
parent
e83e48392e
commit
c876104714
|
@ -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 |
Loading…
Reference in New Issue