tdf#99130 use subdivision on B2DPolygon, angle based subdivision
Remove the subdivider we used until now as there is a better way to subdivide a polygon with getDefaultAdaptiveSubdivision, which in additiona also caches the result. The subdivider used in getDefaultAdaptiveSubdivision was a limited count based subdivider so this exchanges that with an angle based one which gives much better results. Change-Id: I95c009ccf3d54305df0d8eef177cab0df0a23bea Reviewed-on: https://gerrit.libreoffice.org/25033 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
This commit is contained in:
committed by
Tomaž Vajngerl
parent
f935bf47d1
commit
37ed508022
@@ -2064,9 +2064,7 @@ bool OpenGLSalGraphicsImpl::drawPolyLine(
|
||||
basegfx::B2DPolygon aPolygon(rPolygon);
|
||||
|
||||
if (aPolygon.areControlPointsUsed())
|
||||
aPolygon = basegfx::tools::polygonSubdivide(aPolygon, 5 * F_PI180);
|
||||
else
|
||||
aPolygon.removeDoublePoints();
|
||||
aPolygon = aPolygon.getDefaultAdaptiveSubdivision();
|
||||
|
||||
DrawPolyLine(aPolygon, fLineWidth, eLineJoin, eLineCap, fMiterMinimumAngle);
|
||||
}
|
||||
|
Reference in New Issue
Block a user