Le 10/04/2012 18:31, Dick Hollenbeck a écrit :
I updated this to support the PCBNEW nanometers.

Might have broken something on the non-nanometer build, did not test that.



Also, Jean-Pierre,

I think there is still some incompatibility in the zone hatches.  There may be 
too many of
them being constructed.

Might want to instrument the perimeter crosshatch line building code with some 
printf()s
and see how many are being built in both compile modes.

There is a lot of CPU cycles being burned in crosshatch line drawing from what 
I can tell.

I fixed this.
I also moved in convert_to_biu.h the function DMils2iu( int dmils ),
and added a new function Mils2iu( int mils ),
because we have *a lot* of constant values (in decimil and sometimes mils)
 in constructors and dialogs we need to convert to new units.
I am thinking all these values should be converted using one of these 
functions, and never assigned
using something like:
#if defined( USE_PCBNEW_NANOMETRES )
    ...
#else
    ...
#endif

So if we have issues with nanometers, it will be more easy later to modify 
pcbnew.

Also these functions could be useful in Cvpcb and Gerbview (in export to pcbnew 
functions)


--
Jean-Pierre CHARRAS


_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to