Jeff Young
c8d14ade65
Only run starved-thermals checks when pad is actually connected to zone.
Fixes https://gitlab.com/kicad/code/kicad/issues/10583
4 years ago
Jeff Young
63a3b1e20a
Estimate outline font thickness for DRC readability checks.
4 years ago
Jeff Young
1f8c29c395
Coverity fixup.
4 years ago
Jeff Young
5739505aa3
TextBoxes for PCBNew.
4 years ago
Seth Hillbrand
c01e2dcfec
Fix large memory leak in DRC
All elements get effective shapes, many of which get triangulated. This
memory needs to be freed when destroying the tree
(cherry picked from commit c2707f3cc0 )
4 years ago
Jeff Young
29841ba315
Bring ERC & DRC dialogs into parity.
Fixes https://gitlab.com/kicad/code/kicad/issues/9350
4 years ago
Jeff Young
14006495d5
Angle cleanup.
4 years ago
Jeff Young
038db715a3
Move zone hatch orientation to EDA_ANGLE.
4 years ago
Jeff Young
f60c05fc67
Use epsilon compartor for doubles.
4 years ago
Jeff Young
8c246a761d
Move EDA_ANGLE from int to double.
4 years ago
Jeff Young
0967cc82e2
Exclude rules which match no enabled layers.
Fixes https://gitlab.com/kicad/code/kicad/issues/10227
4 years ago
jean-pierre charras
bc77a1e2dd
drc_test_provider_library_parity: fix a crash due to a incorrect if()...else() logic.
The incorrect logic allowed execution of the else sequence when it should not be executed.
4 years ago
Jeff Young
07013d00e1
More EDA_ANGLE.
4 years ago
Jeff Young
abd3f5bc2b
Move footprints to EDA_ANGLE.
4 years ago
Jeff Young
d485eb2514
Move pads to EDA_ANGLE.
4 years ago
jean-pierre charras
cf11abda3d
Fix test_drc_regressions.cpp: disable tests that need a footprint library
DRCE_LIB_FOOTPRINT_ISSUES and DRCE_LIB_FOOTPRINT_MISMATCH imply a library
but the test cases do not have a library.
4 years ago
jean-pierre charras
ea3efac2b6
drc/drc_test_provider_library_parity.cpp: protect against null pointer use.
qa tests, test_solder_mask_bridging.cpp: filter not relevant DRC tests
4 years ago
Jeff Young
8c6c87eaf4
Separate footprint lib issues from footprint mismatch issues.
Fixes https://gitlab.com/kicad/code/kicad/issues/10132
4 years ago
Marek Roszko
fcfe42d67c
Continue the war on wxPoint
4 years ago
Jeff Young
21790fcab7
Fix a pair of dereference-freed-pointers in DRC.
Fixes https://gitlab.com/kicad/code/kicad/issues/10335
4 years ago
jean-pierre charras
c24985e8cf
drc_test_provider_sliver_checker.cpp: skip very small vertices when testing.
Very small vertices (length <= 2 or 3 iu) are frequent in filled areas, and
create false positive detections because one cannot calculate a meaningful
orientation of these vertices.
4 years ago
jean-pierre charras
2b20a58615
Zone fill: fix an issue that uses thermal spoke width as thermal gap.
Fixes #10300
https://gitlab.com/kicad/code/kicad/issues/10300
4 years ago
jean-pierre charras
33dbe92deb
drc_test_provider_mechanical_clearance: add missing handling of SHAPE_T::RECT
test_ee_item.cpp: add missing call to ClearFieldsAutoplaced();
4 years ago
Jeff Young
b70cf1473f
Allow solder mask aperture objects to inherit nets during DRC.
The issue is that object A (the solder mask aperture object) can
bridge objects B and C which have different nets. Since we only do
object-to-object compares we don't find this. By allowing object A
to inherit the first net it collides with (either object B's or
object C's), we'll generate a violation with the second collision.
Fixes https://gitlab.com/kicad/code/kicad/issues/10189
4 years ago
Jeff Young
0365c6bf4b
Coverity fixes.
4 years ago
Marek Roszko
7d671cff1e
Scoop up some more wxPoints
4 years ago
Tomasz Wlostowski
dafa8ec671
pcbnew: fix incorrect type cast in DRC_TEST_PROVIDER_TEXT_DIMS
FP_TEXT cannot be casted to PCB_TEXT for obvious reasons, but what I don't understand is why downcasting to EDA_TEXT also crashes due to incorrect vtable method pointer (Clang10/Linux here).
I leave this as a curiosity for whoever knows C++.
4 years ago
Marek Roszko
c4c56de708
Neurotically update position wxPoint usages
4 years ago
Marek Roszko
347e03363a
Convert wxPoint/wxSize starting from EDA_RECT usages
4 years ago
Ian McInerney
0e9cfd0af2
Add missing initialization values to variables
Flagged by Coverity.
4 years ago
Erwan Rouault
dc98419d85
pcbnew: Add via height support in drc length
Fixes https://gitlab.com/kicad/code/kicad/-/issues/10135
(cherry picked from commit 11c967b259 )
4 years ago
Jeff Young
ab583a32f9
Better layer handling for DRC markers.
Fixes https://gitlab.com/kicad/code/kicad/issues/10126
4 years ago
Jeff Young
03a5bd5319
Handle flipped footprints in library compare algorithm.
Also fixes a bug where line styles weren't taken into account.
Fixes https://gitlab.com/kicad/code/kicad/issues/10107
4 years ago
Jeff Young
09b7e0b72b
ADDED Exclude Footprint from Courtyard Requirement.
Fixes https://gitlab.com/kicad/code/kicad/issues/9881
4 years ago
Jeff Young
d649b288a6
Swap out autoplace rotation costs for private footprint layers.
Fixes https://gitlab.com/kicad/code/kicad/issues/2291
Fixes https://gitlab.com/kicad/code/kicad/issues/5391
4 years ago
Jeff Young
fa908e1f98
Dimensions for footprints.
Fixes https://gitlab.com/kicad/code/kicad/issues/8441
4 years ago
Jeff Young
ed79f6e511
Clean up some TODOs.
4 years ago
Jeff Young
b4c5e64db2
Exclusions for Unconnected Items; Markers & exclusions for Parity checks
Fixes https://gitlab.com/kicad/code/kicad/issues/5589
Fixes https://gitlab.com/kicad/code/kicad/issues/5504
4 years ago
Jeff Young
b7e196b710
ADDED assertion constraints for user-defined DRC checks.
4 years ago
Jeff Young
4ba3937f8a
Cleanup.
4 years ago
Jeff Young
0332ec6016
ADDED exclude all violations of rule X.
Fixes https://gitlab.com/kicad/code/kicad/issues/5463
4 years ago
Jeff Young
5f37c2b247
Custom rule severities.
ADDED severity token to custom rule syntax. Each rule can now define
its own severity.
Fixes https://gitlab.com/kicad/code/kicad/issues/6148
4 years ago
Jeff Young
b2dff6fa55
Fix solder mask plotting issues.
1) Don't plot all footprint texts for each footprint graphic item.
2) Enforce min web thickness around board shapes and board text.
3) Enforce min web thickness around footprint shapes
4) Correctly handle multi-layer zones.
(1) and (4) will get cherry-picked back to 6.0, so after rebasing
won't actually appear in this changelist anymore....
4 years ago
Jeff Young
ef10b36948
Add mask-to-copper clearance parameter and rename mask margin.
4 years ago
Jeff Young
3aa6d73770
Allow min/max/opt to come from different rules.
4 years ago
Jeff Young
4b6f2f0658
Add mechanical copper clearance testing for shapes.
Also includes going from distance-based neighbor exclusion to angle-
based. (Distance doesn't work when very short segments are followed
by very long ones.)
Fixes https://gitlab.com/kicad/code/kicad/issues/2512
4 years ago
Jeff Young
1305c2177f
Add a checker for copper-to-copper clearance within a single zone.
Fixes https://gitlab.com/kicad/code/kicad/issues/2512
4 years ago
Jeff Young
5433684d3c
Try to make gcc happy.
4 years ago
Jeff Young
235e0a430d
Less flashing of the progress bar.
4 years ago
Jeff Young
56c85bd354
Improve clearance and constraint resolution reporting.
1) Report on all applicable clearance types
2) Don't double-book constraints if they're used by more than one
test provider
Fixes https://gitlab.com/kicad/code/kicad/issues/8961
4 years ago