|
KiCad PCB EDA Suite
|
Regression test for the early rejection in CU_SHAPE_CIRCLE::Paths( const BE_SHAPE_CIRCLE& ). More...
#include <cmath>#include <vector>#include <qa_utils/wx_utils/unit_test_utils.h>#include <base_units.h>#include <drc/drc_creepage_utils.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (CreepageCircleToHoleKeepsReachableTangent) | |
| BOOST_AUTO_TEST_CASE (CreepageCircleInsideHoleKeepsRadialGap) | |
Regression test for the early rejection in CU_SHAPE_CIRCLE::Paths( const BE_SHAPE_CIRCLE& ).
The path that must clear the target is the external tangent sqrt(dist^2 - R2^2) - R1 outside the hole, or the radial gap R2 - dist - R1 inside it. Both are shorter than the centre distance. These cases put the centres beyond the target and the surfaces inside it, where a prune on the centre distance drops the pair.
Definition in file test_drc_creepage_circle_prune.cpp.
| BOOST_AUTO_TEST_CASE | ( | CreepageCircleInsideHoleKeepsRadialGap | ) |
Definition at line 74 of file test_drc_creepage_circle_prune.cpp.
References CU_SHAPE_CIRCLE::Paths(), and pcbIUScale.
| BOOST_AUTO_TEST_CASE | ( | CreepageCircleToHoleKeepsReachableTangent | ) |
Definition at line 48 of file test_drc_creepage_circle_prune.cpp.
References CU_SHAPE_CIRCLE::Paths(), and pcbIUScale.