Commit 35e8a286 authored by dickelbeck's avatar dickelbeck

resolved the zone 'cutout' support to specctra, handle zones with attached to no nets, namelessly

parent 31aee8ef
...@@ -1022,6 +1022,8 @@ public: ...@@ -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 ) ...@@ -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 ) ...@@ -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() ] ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment