Improve SHAPE_LINE_CHAIN arc plotting.

It still doesn't get it quite right as it restarts
the lineStyle pattern at each segment/arc transition.
This commit is contained in:
Jeff Young
2025-10-23 17:43:30 +01:00
parent 3c4db94469
commit e6b6200de2
5 changed files with 78 additions and 40 deletions
+1 -8
View File
@@ -851,14 +851,7 @@ void GERBER_PLOTTER::Rect( const VECTOR2I& p1, const VECTOR2I& p2, FILL_T fill,
int aCornerRadius )
{
if( aCornerRadius > 0 )
{
BOX2I box( p1, VECTOR2I( p2.x - p1.x, p2.y - p1.y ) );
box.Normalize();
SHAPE_RECT rect( box );
rect.SetRadius( aCornerRadius );
PlotPoly( rect.Outline(), fill, width, nullptr );
return;
}
wxFAIL_MSG( wxT( "GERBER_PLOTTER must use PlotPolyAsRegion() for rounded-corner rectangles!" ) );
std::vector<VECTOR2I> cornerList;