← Back to team overview

kicad-developers team mailing list archive

Issue in commit rev 2962

 

Vladimir,
Your commit 2962, that modify gr_basic.cpp, and use ClipAndDrawFilledPoly to clip rectangles is incorrect
Using ClipAndDrawFilledPoly instead of old code has 2 issues:
-1 Rectangles outside the draw area are are still drawn
-2 Rectangles having outlines drawn with a thick pen are drawn with outlines around the draw area.

ClipAndDrawFilledPoly uses Sutherland Hodgman algorithm that do not remove polygon outlines,
and can be used *only* to clip filled polygons having no thick outlines,
i.e. when they are no outline to draw (just a filled area),
therefore not to clip rectangles that outlines must be drawn.

Please, go back to the old code.

--
Jean-Pierre CHARRAS



Follow ups

References