53 const double maxWeight =
pcbIUScale.mmToIU( 9.0 );
55 const double expectedWeight = sqrt( (
double) dist * dist - (
double) R2 * R2 ) - R1;
58 BOOST_REQUIRE_GT( dist, R2 );
59 BOOST_REQUIRE_GT( dist, maxWeight );
60 BOOST_REQUIRE_LT( expectedWeight, maxWeight );
65 std::vector<PATH_CONNECTION> paths = copper.
Paths( hole, maxWeight, maxWeight * maxWeight );
67 BOOST_REQUIRE_EQUAL( paths.size(), TANGENTS_PER_PAIR );
70 BOOST_CHECK_CLOSE( pc.weight, expectedWeight, 0.1 );
79 const double maxWeight =
pcbIUScale.mmToIU( 6.0 );
81 const double expectedWeight = R2 - dist - R1;
84 BOOST_REQUIRE_LE( dist, R2 );
85 BOOST_REQUIRE_GT( dist, maxWeight );
86 BOOST_REQUIRE_LT( expectedWeight, maxWeight );
91 std::vector<PATH_CONNECTION> paths = copper.
Paths( hole, maxWeight, maxWeight * maxWeight );
93 BOOST_REQUIRE_EQUAL( paths.size(), TANGENTS_PER_PAIR );
96 BOOST_CHECK_CLOSE( pc.weight, expectedWeight, 0.1 );
BOOST_AUTO_TEST_CASE(CreepageCircleToHoleKeepsReachableTangent)