← Back to team overview

kicad-developers team mailing list archive

[PATCH] Reduced line width of polygon in bitmap to footprint import.

 

Minor patch to reduce the polygon line width used the bitmap2component import. The existing 0.1 mm linewidth reduces the accuracy of the imported bitmap outline. As it is a filled polygon anyway, the line width can be quite small and gives
beter looking results this way.

diff --git a/bitmap2component/bitmap2component.cpp b/bitmap2component/bitmap2component.cpp
index db11585..6717e0b 100644
--- a/bitmap2component/bitmap2component.cpp
+++ b/bitmap2component/bitmap2component.cpp
@@ -356,7 +356,7 @@ void BITMAPCONV_INFO::OuputOnePolygon( KPolygon & aPolygon, const char * aBrdLay

     case PCBNEW_KICAD_MOD:
     {
-        double width = 0.1;
+        double width = 0.0001;
         fprintf( m_Outfile, "  (fp_poly (pts" );

         jj = 0;



Follow ups