resolved the zone 'cutout' support to specctra, handle zones with attached to no nets, namelessly
This commit is contained in:
parent
31aee8ef3e
commit
35e8a286e8
|
@ -1022,6 +1022,8 @@ public:
|
||||||
const char* quote = out->GetQuoteChar( name.c_str() );
|
const char* quote = out->GetQuoteChar( name.c_str() );
|
||||||
out->Print( 0, " %s%s%s", quote, name.c_str(), quote );
|
out->Print( 0, " %s%s%s", quote, name.c_str(), quote );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
out->Print( 0, " \"\"" ); // the zone with no name or net_code == 0
|
||||||
|
|
||||||
if( sequence_number != -1 )
|
if( sequence_number != -1 )
|
||||||
out->Print( 0, " (sequence_number %d)", sequence_number );
|
out->Print( 0, " (sequence_number %d)", sequence_number );
|
||||||
|
|
|
@ -1060,7 +1060,6 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IOError )
|
||||||
PATH* cutout = 0;
|
PATH* cutout = 0;
|
||||||
|
|
||||||
// handle the cutouts
|
// handle the cutouts
|
||||||
// http://www.freerouting.net/fen/viewtopic.php?f=6&t=19
|
|
||||||
for( ++ndx; ndx<count; ++ndx )
|
for( ++ndx; ndx<count; ++ndx )
|
||||||
{
|
{
|
||||||
if( item->m_Poly->corner[ndx-1].end_contour )
|
if( item->m_Poly->corner[ndx-1].end_contour )
|
||||||
|
@ -1068,8 +1067,7 @@ void SPECCTRA_DB::FromBOARD( BOARD* aBoard ) throw( IOError )
|
||||||
window = new WINDOW( plane );
|
window = new WINDOW( plane );
|
||||||
plane->AddWindow( window );
|
plane->AddWindow( window );
|
||||||
|
|
||||||
cutout = new PATH( window, T_path );
|
cutout = new PATH( window, T_polygon );
|
||||||
// cutout = new PATH( window, T_polygon );
|
|
||||||
window->SetShape( cutout );
|
window->SetShape( cutout );
|
||||||
|
|
||||||
cutout->layer_id = layerIds[ kicadLayer2pcb[ item->GetLayer() ] ];
|
cutout->layer_id = layerIds[ kicadLayer2pcb[ item->GetLayer() ] ];
|
||||||
|
|
Loading…
Reference in New Issue