← Back to team overview

kicad-developers team mailing list archive

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

 

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>:

> 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
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
>

Follow ups

References