KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_zone_filler.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you may find one here:
18 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19 * or you may search the http://www.gnu.org website for the version 2 license,
20 * or you may write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
25#include <boost/test/data/test_case.hpp>
26
28#include <board.h>
30#include <pad.h>
31#include <pcb_track.h>
32#include <footprint.h>
33#include <zone.h>
34#include <drc/drc_item.h>
37#include <advanced_config.h>
39
40
49
50
51int delta = KiROUND( 0.006 * pcbIUScale.IU_PER_MM );
52
53
55{
56 KI_TEST::LoadBoard( m_settingsManager, "zone_filler", m_board );
57
58 BOARD_DESIGN_SETTINGS& bds = m_board->GetDesignSettings();
59
60 KI_TEST::FillZones( m_board.get() );
61
62 // Now that the zones are filled we're going to increase the size of -some- pads and
63 // tracks so that they generate DRC errors. The test then makes sure that those errors
64 // are generated, and that the other pads and tracks do -not- generate errors.
65
66 for( PAD* pad : m_board->Footprints()[0]->Pads() )
67 {
68 if( pad->GetNumber() == "2" || pad->GetNumber() == "4" || pad->GetNumber() == "6" )
69 {
70 pad->SetSize( PADSTACK::ALL_LAYERS,
71 pad->GetSize( PADSTACK::ALL_LAYERS ) + VECTOR2I( delta, delta ) );
72 }
73 }
74
75 int ii = 0;
76 KIID arc8;
77 KIID arc12;
78
79 for( PCB_TRACK* track : m_board->Tracks() )
80 {
81 if( track->Type() == PCB_ARC_T )
82 {
83 ii++;
84
85 if( ii == 8 )
86 {
87 arc8 = track->m_Uuid;
88 track->SetWidth( track->GetWidth() + delta + delta );
89 }
90 else if( ii == 12 )
91 {
92 arc12 = track->m_Uuid;
93 track->Move( VECTOR2I( -delta, -delta ) );
94 }
95 }
96 }
97
98 bool foundPad2Error = false;
99 bool foundPad4Error = false;
100 bool foundPad6Error = false;
101 bool foundArc8Error = false;
102 bool foundArc12Error = false;
103 bool foundOtherError = false;
104
105 bds.m_DRCEngine->InitEngine( wxFileName() ); // Just to be sure to be sure
106
108 [&]( const std::shared_ptr<DRC_ITEM>& aItem, const VECTOR2I& aPos, int aLayer,
109 const std::function<void( PCB_MARKER* )>& aPathGenerator )
110 {
111 if( aItem->GetErrorCode() == DRCE_CLEARANCE )
112 {
113 BOARD_ITEM* item_a = m_board->ResolveItem( aItem->GetMainItemID() );
114 PAD* pad_a = dynamic_cast<PAD*>( item_a );
115 PCB_TRACK* trk_a = dynamic_cast<PCB_TRACK*>( item_a );
116
117 BOARD_ITEM* item_b = m_board->ResolveItem( aItem->GetAuxItemID() );
118 PAD* pad_b = dynamic_cast<PAD*>( item_b );
119 PCB_TRACK* trk_b = dynamic_cast<PCB_TRACK*>( item_b );
120
121 if( pad_a && pad_a->GetNumber() == "2" ) foundPad2Error = true;
122 else if( pad_a && pad_a->GetNumber() == "4" ) foundPad4Error = true;
123 else if( pad_a && pad_a->GetNumber() == "6" ) foundPad6Error = true;
124 else if( pad_b && pad_b->GetNumber() == "2" ) foundPad2Error = true;
125 else if( pad_b && pad_b->GetNumber() == "4" ) foundPad4Error = true;
126 else if( pad_b && pad_b->GetNumber() == "6" ) foundPad6Error = true;
127 else if( trk_a && trk_a->m_Uuid == arc8 ) foundArc8Error = true;
128 else if( trk_a && trk_a->m_Uuid == arc12 ) foundArc12Error = true;
129 else if( trk_b && trk_b->m_Uuid == arc8 ) foundArc8Error = true;
130 else if( trk_b && trk_b->m_Uuid == arc12 ) foundArc12Error = true;
131 else foundOtherError = true;
132
133 }
134 } );
135
136 bds.m_DRCEngine->RunTests( EDA_UNITS::MM, true, false );
137
138 BOOST_CHECK_EQUAL( foundPad2Error, true );
139 BOOST_CHECK_EQUAL( foundPad4Error, true );
140 BOOST_CHECK_EQUAL( foundPad6Error, true );
141 BOOST_CHECK_EQUAL( foundArc8Error, true );
142 BOOST_CHECK_EQUAL( foundArc12Error, true );
143 BOOST_CHECK_EQUAL( foundOtherError, false );
144}
145
146
148{
149 KI_TEST::LoadBoard( m_settingsManager, "notched_zones", m_board );
150
151 // Older algorithms had trouble where the filleted zones intersected and left notches.
152 // See:
153 // https://gitlab.com/kicad/code/kicad/-/issues/2737
154 // https://gitlab.com/kicad/code/kicad/-/issues/2752
155 SHAPE_POLY_SET frontCopper;
156
157 KI_TEST::FillZones( m_board.get() );
158
159 frontCopper = SHAPE_POLY_SET();
160
161 for( ZONE* zone : m_board->Zones() )
162 {
163 if( zone->GetLayerSet().Contains( F_Cu ) )
164 {
165 frontCopper.BooleanAdd( *zone->GetFilledPolysList( F_Cu ) );
166 }
167 }
168
169 BOOST_CHECK_EQUAL( frontCopper.OutlineCount(), 2 );
170}
171
172
173static const std::vector<wxString> RegressionZoneFillTests_tests = {
174 "issue18",
175 "issue2568",
176 "issue3812",
177 "issue5102",
178 "issue5313",
179 "issue5320",
180 "issue5567",
181 "issue5830",
182 "issue6039",
183 "issue6260",
184 "issue6284",
185 "issue7086",
186 "issue14294", // Bad Clipper2 fill
187 "fill_bad" // Missing zone clearance expansion
188};
189
190
192 boost::unit_test::data::make( RegressionZoneFillTests_tests ), relPath )
193{
194 KI_TEST::LoadBoard( m_settingsManager, relPath, m_board );
195
196 BOARD_DESIGN_SETTINGS& bds = m_board->GetDesignSettings();
197
198 KI_TEST::FillZones( m_board.get() );
199
200 std::vector<DRC_ITEM> violations;
201
203 [&]( const std::shared_ptr<DRC_ITEM>& aItem, const VECTOR2I& aPos, int aLayer,
204 const std::function<void( PCB_MARKER* )>& aPathGenerator )
205 {
206 if( aItem->GetErrorCode() == DRCE_CLEARANCE )
207 violations.push_back( *aItem );
208 } );
209
210 bds.m_DRCEngine->RunTests( EDA_UNITS::MM, true, false );
211
212 if( violations.empty() )
213 {
214 BOOST_CHECK_EQUAL( 1, 1 ); // quiet "did not check any assertions" warning
215 BOOST_TEST_MESSAGE( wxString::Format( "Zone fill regression: %s passed", relPath ) );
216 }
217 else
218 {
219 UNITS_PROVIDER unitsProvider( pcbIUScale, EDA_UNITS::INCH );
220
221 std::map<KIID, EDA_ITEM*> itemMap;
222 m_board->FillItemMap( itemMap );
223
224 for( const DRC_ITEM& item : violations )
225 BOOST_TEST_MESSAGE( item.ShowReport( &unitsProvider, RPT_SEVERITY_ERROR, itemMap ) );
226
227 BOOST_ERROR( wxString::Format( "Zone fill regression: %s failed", relPath ) );
228 }
229}
230
231
232static const std::vector<wxString> RegressionSliverZoneFillTests_tests = {
233 "issue16182" // Slivers
234};
235
236
237BOOST_DATA_TEST_CASE_F( ZONE_FILL_TEST_FIXTURE, RegressionSliverZoneFillTests,
238 boost::unit_test::data::make( RegressionSliverZoneFillTests_tests ),
239 relPath )
240{
241 KI_TEST::LoadBoard( m_settingsManager, relPath, m_board );
242
243 BOARD_DESIGN_SETTINGS& bds = m_board->GetDesignSettings();
244
245 KI_TEST::FillZones( m_board.get() );
246
247 std::vector<DRC_ITEM> violations;
248
250 [&]( const std::shared_ptr<DRC_ITEM>& aItem, const VECTOR2I& aPos, int aLayer,
251 const std::function<void( PCB_MARKER* )>& aPathGenerator )
252 {
253 if( aItem->GetErrorCode() == DRCE_COPPER_SLIVER )
254 violations.push_back( *aItem );
255 } );
256
257 bds.m_DRCEngine->RunTests( EDA_UNITS::MM, true, false );
258
259 if( violations.empty() )
260 {
261 BOOST_CHECK_EQUAL( 1, 1 ); // quiet "did not check any assertions" warning
262 BOOST_TEST_MESSAGE( wxString::Format( "Zone fill copper sliver regression: %s passed", relPath ) );
263 }
264 else
265 {
266 UNITS_PROVIDER unitsProvider( pcbIUScale, EDA_UNITS::INCH );
267
268 std::map<KIID, EDA_ITEM*> itemMap;
269 m_board->FillItemMap( itemMap );
270
271 for( const DRC_ITEM& item : violations )
272 BOOST_TEST_MESSAGE( item.ShowReport( &unitsProvider, RPT_SEVERITY_ERROR, itemMap ) );
273
274 BOOST_ERROR( wxString::Format( "Zone fill copper sliver regression: %s failed", relPath ) );
275 }
276}
277
278
279static const std::vector<std::pair<wxString,int>> RegressionTeardropFill_tests = {
280 { "teardrop_issue_JPC2", 5 }, // Arcs with teardrops connecting to pads
281};
282
283
285 boost::unit_test::data::make( RegressionTeardropFill_tests ), test )
286{
287 const wxString& relPath = test.first;
288 const int count = test.second;
289
290 KI_TEST::LoadBoard( m_settingsManager, relPath, m_board );
291
292 BOARD_DESIGN_SETTINGS& bds = m_board->GetDesignSettings();
293
294 KI_TEST::FillZones( m_board.get() );
295
296 int zoneCount = 0;
297
298 for( ZONE* zone : m_board->Zones() )
299 {
300 if( zone->IsTeardropArea() )
301 zoneCount++;
302 }
303
304 BOOST_CHECK_MESSAGE( zoneCount == count, "Expected " << count << " teardrop zones in "
305 << relPath << ", found "
306 << zoneCount );
307}
308
309
311{
312
313 std::vector<wxString> tests = { { "issue19956/issue19956" } // Arcs with teardrops connecting to pads
314 };
315
316 for( const wxString& relPath : tests )
317 {
318 KI_TEST::LoadBoard( m_settingsManager, relPath, m_board );
319 BOARD_DESIGN_SETTINGS& bds = m_board->GetDesignSettings();
320 KI_TEST::FillZones( m_board.get() );
321
322 for( ZONE* zone : m_board->Zones() )
323 {
324 for( PCB_LAYER_ID layer : zone->GetLayerSet() )
325 {
326 std::shared_ptr<SHAPE> a_shape( zone->GetEffectiveShape( layer ) );
327
328 for( PAD* pad : m_board->GetPads() )
329 {
330 std::shared_ptr<SHAPE> pad_shape( pad->GetEffectiveShape( layer ) );
331 int clearance = pad_shape->GetClearance( a_shape.get() );
332 BOOST_CHECK_MESSAGE( pad->GetNetCode() == zone->GetNetCode() || clearance != 0,
333 wxString::Format( "Pad %s from Footprint %s has net code %s and "
334 "is connected to zone with net code %s",
335 pad->GetNumber(),
336 pad->GetParentFootprint()->GetReferenceAsString(),
337 pad->GetNetname(),
338 zone->GetNetname() ) );
339 }
340 }
341 }
342 }
343}
344
345
360BOOST_FIXTURE_TEST_CASE( RegressionZonePriorityIsolatedIslands, ZONE_FILL_TEST_FIXTURE )
361{
362 // Enable iterative refill to fix issue 21746
363 ADVANCED_CFG& cfg = const_cast<ADVANCED_CFG&>( ADVANCED_CFG::GetCfg() );
364 bool originalIterativeRefill = cfg.m_ZoneFillIterativeRefill;
365 cfg.m_ZoneFillIterativeRefill = true;
366
367 // Restore config at end of scope to avoid polluting other tests
368 struct ScopeGuard { bool& ref; bool orig; ~ScopeGuard() { ref = orig; } } guard{ cfg.m_ZoneFillIterativeRefill, originalIterativeRefill };
369
370 KI_TEST::LoadBoard( m_settingsManager, "issue21746/issue21746", m_board );
371
372 KI_TEST::FillZones( m_board.get() );
373
374 // Find the GND zone
375 ZONE* gndZone = nullptr;
376
377 for( ZONE* zone : m_board->Zones() )
378 {
379 if( zone->GetNetname() == "GND" )
380 {
381 gndZone = zone;
382 break;
383 }
384 }
385
386 BOOST_REQUIRE_MESSAGE( gndZone != nullptr, "GND zone not found in test board" );
387
388 // Calculate board outline area
389 SHAPE_POLY_SET boardOutline;
390 bool hasOutline = m_board->GetBoardPolygonOutlines( boardOutline, true );
391 BOOST_REQUIRE_MESSAGE( hasOutline, "Board outline not found" );
392
393 double boardArea = 0.0;
394
395 for( int i = 0; i < boardOutline.OutlineCount(); i++ )
396 boardArea += boardOutline.Outline( i ).Area();
397
398 // Get GND zone filled area
399 gndZone->CalculateFilledArea();
400 double gndFilledArea = gndZone->GetFilledArea();
401
402 // The GND zone should fill at least 25% of the board area
403 // With the bug, it fills almost nothing because VDD knocks it out
404 double fillRatio = gndFilledArea / boardArea;
405
406 BOOST_TEST_MESSAGE( wxString::Format( "Board area: %.2f sq mm, GND filled area: %.2f sq mm, "
407 "Fill ratio: %.1f%%",
408 boardArea / 1e6, gndFilledArea / 1e6,
409 fillRatio * 100.0 ) );
410
411 BOOST_CHECK_MESSAGE( fillRatio >= 0.25,
412 wxString::Format( "GND zone fill ratio %.1f%% is less than expected 25%%. "
413 "This indicates issue 21746 - lower priority zones not "
414 "filling areas where higher priority isolated islands "
415 "were removed.",
416 fillRatio * 100.0 ) );
417}
418
419
433BOOST_FIXTURE_TEST_CASE( RegressionViaFlashingUnreachableZone, ZONE_FILL_TEST_FIXTURE )
434{
435 KI_TEST::LoadBoard( m_settingsManager, "issue22010/issue22010", m_board );
436
437 KI_TEST::FillZones( m_board.get() );
438
439 // Find vias with zone_layer_connections set for In1.Cu or In2.Cu
440 // After filling, vias that the zone doesn't actually reach should NOT be flashed
441 int viasWithUnreachableFlashing = 0;
442 int totalConditionalVias = 0;
443
444 PCB_LAYER_ID in1Cu = m_board->GetLayerID( wxT( "In1.Cu" ) );
445 PCB_LAYER_ID in2Cu = m_board->GetLayerID( wxT( "In2.Cu" ) );
446
447 for( PCB_TRACK* track : m_board->Tracks() )
448 {
449 if( track->Type() != PCB_VIA_T )
450 continue;
451
452 PCB_VIA* via = static_cast<PCB_VIA*>( track );
453
454 if( !via->GetRemoveUnconnected() )
455 continue;
456
457 totalConditionalVias++;
458
459 // Check if via is flashed on In1.Cu or In2.Cu
460 bool flashedOnIn1 = via->FlashLayer( in1Cu );
461 bool flashedOnIn2 = via->FlashLayer( in2Cu );
462
463 if( !flashedOnIn1 && !flashedOnIn2 )
464 continue;
465
466 VECTOR2I viaCenter = via->GetPosition();
467 int holeRadius = via->GetDrillValue() / 2;
468
469 // Check if any zone fill actually reaches this via
470 bool zoneReachesVia = false;
471
472 for( ZONE* zone : m_board->Zones() )
473 {
474 if( zone->GetIsRuleArea() )
475 continue;
476
477 if( zone->GetNetCode() != via->GetNetCode() )
478 continue;
479
480 for( PCB_LAYER_ID layer : { in1Cu, in2Cu } )
481 {
482 if( !zone->IsOnLayer( layer ) )
483 continue;
484
485 if( !zone->HasFilledPolysForLayer( layer ) )
486 continue;
487
488 const std::shared_ptr<SHAPE_POLY_SET>& fill = zone->GetFilledPolysList( layer );
489
490 if( fill->Contains( viaCenter, -1, holeRadius ) )
491 {
492 zoneReachesVia = true;
493 break;
494 }
495 }
496
497 if( zoneReachesVia )
498 break;
499 }
500
501 // If via is flashed but zone doesn't reach it, that's the bug
502 if( !zoneReachesVia && ( flashedOnIn1 || flashedOnIn2 ) )
503 viasWithUnreachableFlashing++;
504 }
505
506 BOOST_TEST_MESSAGE( wxString::Format( "Total conditional vias: %d, Vias with unreachable "
507 "flashing: %d", totalConditionalVias,
508 viasWithUnreachableFlashing ) );
509
510 BOOST_CHECK_MESSAGE( viasWithUnreachableFlashing == 0,
511 wxString::Format( "Found %d vias flashed on zone layers where the zone "
512 "fill doesn't actually reach them. This indicates "
513 "issue 22010 is not fixed.",
514 viasWithUnreachableFlashing ) );
515}
516
517
531{
532 KI_TEST::LoadBoard( m_settingsManager, "issue12964/issue12964", m_board );
533
534 KI_TEST::FillZones( m_board.get() );
535
536 int viasShortingZones = 0;
537 int totalConditionalVias = 0;
538
539 for( PCB_TRACK* track : m_board->Tracks() )
540 {
541 if( track->Type() != PCB_VIA_T )
542 continue;
543
544 PCB_VIA* via = static_cast<PCB_VIA*>( track );
545
546 if( !via->GetRemoveUnconnected() )
547 continue;
548
549 totalConditionalVias++;
550
551 VECTOR2I viaCenter = via->GetPosition();
552
553 for( ZONE* zone : m_board->Zones() )
554 {
555 if( zone->GetIsRuleArea() )
556 continue;
557
558 if( zone->GetNetCode() == via->GetNetCode() )
559 continue;
560
561 for( PCB_LAYER_ID layer : zone->GetLayerSet().Seq() )
562 {
563 if( !via->FlashLayer( layer ) )
564 continue;
565
566 if( !zone->HasFilledPolysForLayer( layer ) )
567 continue;
568
569 const std::shared_ptr<SHAPE_POLY_SET>& fill = zone->GetFilledPolysList( layer );
570 int viaRadius = via->GetWidth( layer ) / 2;
571
572 if( fill->Contains( viaCenter, -1, viaRadius ) )
573 {
574 BOOST_TEST_MESSAGE( wxString::Format(
575 "Via at (%d, %d) on net %s is flashing on layer %s where zone "
576 "net %s is filled - this creates a short!",
577 viaCenter.x, viaCenter.y, via->GetNetname(),
578 m_board->GetLayerName( layer ), zone->GetNetname() ) );
579 viasShortingZones++;
580 }
581 }
582 }
583 }
584
585 BOOST_TEST_MESSAGE( wxString::Format( "Total conditional vias: %d, Vias shorting zones: %d",
586 totalConditionalVias, viasShortingZones ) );
587
588 BOOST_CHECK_MESSAGE( viasShortingZones == 0,
589 wxString::Format( "Found %d vias flashed on layers where they short to "
590 "zones with different nets. This indicates issue 12964 "
591 "is not fixed.",
592 viasShortingZones ) );
593}
594
595
608BOOST_FIXTURE_TEST_CASE( HatchZoneThermalConnectivity, ZONE_FILL_TEST_FIXTURE )
609{
610 KI_TEST::LoadBoard( m_settingsManager, "hatch_thermal_connectivity/hatch_thermal_connectivity",
611 m_board );
612
613 KI_TEST::FillZones( m_board.get() );
614
615 m_board->BuildConnectivity();
616
617 int unconnectedCount = m_board->GetConnectivity()->GetUnconnectedCount( false );
618
619 BOOST_CHECK_MESSAGE( unconnectedCount == 0,
620 wxString::Format( "Found %d unconnected items after zone fill. "
621 "Hatch zone thermal reliefs should maintain connectivity "
622 "even with large hatch gaps.",
623 unconnectedCount ) );
624}
constexpr EDA_IU_SCALE pcbIUScale
Definition base_units.h:112
constexpr BOX2I KiROUND(const BOX2D &aBoxD)
Definition box2.h:990
static const ADVANCED_CFG & GetCfg()
Get the singleton instance's config, which is shared by all consumers.
Container for design settings for a BOARD object.
std::shared_ptr< DRC_ENGINE > m_DRCEngine
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition board_item.h:83
void RunTests(EDA_UNITS aUnits, bool aReportAllTrackErrors, bool aTestFootprints, BOARD_COMMIT *aCommit=nullptr)
Run the DRC tests.
void SetViolationHandler(DRC_VIOLATION_HANDLER aHandler)
Set an optional DRC violation handler (receives DRC_ITEMs and positions).
Definition drc_engine.h:167
void InitEngine(const wxFileName &aRulePath)
Initialize the DRC engine.
const KIID m_Uuid
Definition eda_item.h:522
Definition kiid.h:49
static constexpr PCB_LAYER_ID ALL_LAYERS
! Temporary layer identifier to identify code that is not padstack-aware
Definition padstack.h:177
Definition pad.h:55
const wxString & GetNumber() const
Definition pad.h:137
double Area(bool aAbsolute=true) const
Return the area of this chain.
Represent a set of closed polygons.
void BooleanAdd(const SHAPE_POLY_SET &b)
Perform boolean polyset union.
SHAPE_LINE_CHAIN & Outline(int aIndex)
Return the reference to aIndex-th outline in the set.
int OutlineCount() const
Return the number of outlines in the set.
Handle a list of polygons defining a copper zone.
Definition zone.h:74
double GetFilledArea()
This area is cached from the most recent call to CalculateFilledArea().
Definition zone.h:261
double CalculateFilledArea()
Compute the area currently occupied by the zone fill.
Definition zone.cpp:1529
@ DRCE_CLEARANCE
Definition drc_item.h:44
@ DRCE_COPPER_SLIVER
Definition drc_item.h:93
bool m_ZoneFillIterativeRefill
Enable iterative zone filling to handle isolated islands in higher priority zones.
PCB_LAYER_ID
A quick note on layer IDs:
Definition layer_ids.h:60
@ F_Cu
Definition layer_ids.h:64
void LoadBoard(SETTINGS_MANAGER &aSettingsManager, const wxString &aRelPath, std::unique_ptr< BOARD > &aBoard)
void FillZones(BOARD *m_board)
@ RPT_SEVERITY_ERROR
std::unique_ptr< BOARD > m_board
SETTINGS_MANAGER m_settingsManager
int clearance
BOOST_TEST_MESSAGE("Polyline has "<< chain.PointCount()<< " points")
BOOST_CHECK_EQUAL(result, "25.4")
static const std::vector< wxString > RegressionZoneFillTests_tests
int delta
static const std::vector< std::pair< wxString, int > > RegressionTeardropFill_tests
BOOST_DATA_TEST_CASE_F(ZONE_FILL_TEST_FIXTURE, RegressionZoneFillTests, boost::unit_test::data::make(RegressionZoneFillTests_tests), relPath)
static const std::vector< wxString > RegressionSliverZoneFillTests_tests
BOOST_FIXTURE_TEST_CASE(BasicZoneFills, ZONE_FILL_TEST_FIXTURE)
@ PCB_VIA_T
class PCB_VIA, a via (like a track segment on a copper layer)
Definition typeinfo.h:97
@ PCB_ARC_T
class PCB_ARC, an arc track segment on a copper layer
Definition typeinfo.h:98
VECTOR2< int32_t > VECTOR2I
Definition vector2d.h:695