Loading pcbnew/specctra_export.cpp +6 −4 Original line number Original line Diff line number Diff line Loading @@ -1037,12 +1037,14 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IO_ERROR ) { { #if defined(USE_PCBNEW_NANOMETRES) #if defined(USE_PCBNEW_NANOMETRES) // tell freerouter about centi-mil // tell freerouter to use "tenths of micrometers", // which is 100 nm resolution. Possibly more resolution is possible // in freerouter, but it would need testing. pcb->unit->units = T_um; pcb->unit->units = T_um; pcb->resolution->units = T_um; pcb->resolution->units = T_um; pcb->resolution->value = 10; // tenths of a um pcb->resolution->value = 10; // pcb->resolution->value = 1000; // "thousandths of a um" (i.e. "nm") #else #else pcb->unit->units = T_mil; pcb->unit->units = T_mil; Loading pcbnew/specctra_import.cpp +1 −3 Original line number Original line Diff line number Diff line Loading @@ -145,11 +145,10 @@ namespace DSN { static int scale( double distance, UNIT_RES* aResolution ) static int scale( double distance, UNIT_RES* aResolution ) { { double resValue = aResolution->GetValue(); double resValue = aResolution->GetValue(); double factor; #if defined(USE_PCBNEW_NANOMETRES) #if defined(USE_PCBNEW_NANOMETRES) double factor; switch( aResolution->GetEngUnits() ) switch( aResolution->GetEngUnits() ) { { default: default: Loading @@ -173,7 +172,6 @@ static int scale( double distance, UNIT_RES* aResolution ) int ret = wxRound( factor * distance / resValue ); int ret = wxRound( factor * distance / resValue ); #else #else double factor; // multiply this times session value to get mils for KiCad. switch( aResolution->GetEngUnits() ) switch( aResolution->GetEngUnits() ) { { Loading Loading
pcbnew/specctra_export.cpp +6 −4 Original line number Original line Diff line number Diff line Loading @@ -1037,12 +1037,14 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IO_ERROR ) { { #if defined(USE_PCBNEW_NANOMETRES) #if defined(USE_PCBNEW_NANOMETRES) // tell freerouter about centi-mil // tell freerouter to use "tenths of micrometers", // which is 100 nm resolution. Possibly more resolution is possible // in freerouter, but it would need testing. pcb->unit->units = T_um; pcb->unit->units = T_um; pcb->resolution->units = T_um; pcb->resolution->units = T_um; pcb->resolution->value = 10; // tenths of a um pcb->resolution->value = 10; // pcb->resolution->value = 1000; // "thousandths of a um" (i.e. "nm") #else #else pcb->unit->units = T_mil; pcb->unit->units = T_mil; Loading
pcbnew/specctra_import.cpp +1 −3 Original line number Original line Diff line number Diff line Loading @@ -145,11 +145,10 @@ namespace DSN { static int scale( double distance, UNIT_RES* aResolution ) static int scale( double distance, UNIT_RES* aResolution ) { { double resValue = aResolution->GetValue(); double resValue = aResolution->GetValue(); double factor; #if defined(USE_PCBNEW_NANOMETRES) #if defined(USE_PCBNEW_NANOMETRES) double factor; switch( aResolution->GetEngUnits() ) switch( aResolution->GetEngUnits() ) { { default: default: Loading @@ -173,7 +172,6 @@ static int scale( double distance, UNIT_RES* aResolution ) int ret = wxRound( factor * distance / resValue ); int ret = wxRound( factor * distance / resValue ); #else #else double factor; // multiply this times session value to get mils for KiCad. switch( aResolution->GetEngUnits() ) switch( aResolution->GetEngUnits() ) { { Loading