← Back to team overview

kicad-developers team mailing list archive

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

 

Good question. Did not try that. Is a width of 0 allowed?

On 30-Jun-15 18:14, Nick Østergaard wrote:

Why does the polygon even have a width? Can't it just be zero?

Den 30/06/2015 03.04 skrev "Marco Hess" <marco.hess@xxxxxxxxxxxxxx <mailto:marco.hess@xxxxxxxxxxxxxx>>:

    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;


    _______________________________________________
    Mailing list: https://launchpad.net/~kicad-developers
    <https://launchpad.net/%7Ekicad-developers>
    Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
    <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
    Unsubscribe : https://launchpad.net/~kicad-developers
    <https://launchpad.net/%7Ekicad-developers>
    More help   : https://help.launchpad.net/ListHelp


--
Marco Hess
Through IP Pty. Ltd. - AUSTRALIA
www.through-ip.com  | marco.hess@xxxxxxxxxxxxxx
p: +61 407 78 55 66 | f: +61 8 8121 6191


References