REMOVE: vias from specctra DSN export which are not in a netclass. Use only netclass based via sizes in freerouter.
Some of the vias in the class-less list were setting the drill hole size to zero and this made no sense to freerouter.
This commit is contained in:
parent
cc7a070b63
commit
31461a9b53
|
@ -201,12 +201,8 @@ const KICAD_T SPECCTRA_DB::scanPADs[] = { PCB_PAD_T, EOT };
|
||||||
*/
|
*/
|
||||||
static inline double scale( int kicadDist )
|
static inline double scale( int kicadDist )
|
||||||
{
|
{
|
||||||
|
|
||||||
// nanometers to um
|
// nanometers to um
|
||||||
return kicadDist / ( IU_PER_MM / 1000.0 );
|
return kicadDist / ( IU_PER_MM / 1000.0 );
|
||||||
|
|
||||||
// nanometers to mils
|
|
||||||
// return kicadDist/IU_PER_MILS;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1139,7 +1135,7 @@ void SPECCTRA_DB::fillBOUNDARY( BOARD* aBoard, BOUNDARY* boundary ) throw( IO_ER
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxPoint startPt = wxPoint( graphic->GetEnd() );
|
wxPoint startPt( graphic->GetEnd() );
|
||||||
prevPt = graphic->GetEnd();
|
prevPt = graphic->GetEnd();
|
||||||
poly_ko->AppendPoint( mapPt( prevPt ) );
|
poly_ko->AppendPoint( mapPt( prevPt ) );
|
||||||
|
|
||||||
|
@ -1351,7 +1347,6 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IO_ERROR )
|
||||||
|
|
||||||
//-----<unit_descriptor> & <resolution_descriptor>--------------------
|
//-----<unit_descriptor> & <resolution_descriptor>--------------------
|
||||||
{
|
{
|
||||||
|
|
||||||
// tell freerouter to use "tenths of micrometers",
|
// tell freerouter to use "tenths of micrometers",
|
||||||
// which is 100 nm resolution. Possibly more resolution is possible
|
// which is 100 nm resolution. Possibly more resolution is possible
|
||||||
// in freerouter, but it would need testing.
|
// in freerouter, but it would need testing.
|
||||||
|
@ -1728,7 +1723,7 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IO_ERROR )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//-----< output vias used in netclasses and as stock >---------------------
|
//-----< output vias used in netclasses >-----------------------------------
|
||||||
{
|
{
|
||||||
NETCLASSES& nclasses = aBoard->m_NetClasses;
|
NETCLASSES& nclasses = aBoard->m_NetClasses;
|
||||||
|
|
||||||
|
@ -1746,6 +1741,10 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IO_ERROR )
|
||||||
wxASSERT( pcb->library->vias.size() == 0 );
|
wxASSERT( pcb->library->vias.size() == 0 );
|
||||||
pcb->library->AppendVia( via );
|
pcb->library->AppendVia( via );
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
// Stock vias have drill diameter of zero, this is not sensible to freerouter
|
||||||
|
// User should use netclass based vias when going to freerouter.
|
||||||
|
|
||||||
// output the stock vias, but preserve uniqueness in the via container by
|
// output the stock vias, but preserve uniqueness in the via container by
|
||||||
// using LookupVia().
|
// using LookupVia().
|
||||||
for( unsigned i = 0; i < aBoard->m_ViasDimensionsList.size(); ++i )
|
for( unsigned i = 0; i < aBoard->m_ViasDimensionsList.size(); ++i )
|
||||||
|
@ -1762,6 +1761,7 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IO_ERROR )
|
||||||
if( registered != via )
|
if( registered != via )
|
||||||
delete via;
|
delete via;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// set the "spare via" index at the start of the
|
// set the "spare via" index at the start of the
|
||||||
// pcb->library->spareViaIndex = pcb->library->vias.size();
|
// pcb->library->spareViaIndex = pcb->library->vias.size();
|
||||||
|
|
Loading…
Reference in New Issue