KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_shape_hatch_knockout.cpp File Reference

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (UserLayerIgnoresCourtyard)
 A hatched shape on a User layer produces no knockouts, since the only same-layer item would be the front courtyard and that must not be subtracted from a non-courtyard layer.
 
 BOOST_AUTO_TEST_CASE (CourtyardLayerKnocksOutCourtyard)
 A hatched shape on the courtyard layer subtracts the footprint courtyard, so the knockouts contain the courtyard region.
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( CourtyardLayerKnocksOutCourtyard )

A hatched shape on the courtyard layer subtracts the footprint courtyard, so the knockouts contain the courtyard region.

Definition at line 111 of file test_shape_hatch_knockout.cpp.

References SHAPE_POLY_SET::Area(), F_CrtYd, and SHAPE_POLY_SET::OutlineCount().

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( UserLayerIgnoresCourtyard )

A hatched shape on a User layer produces no knockouts, since the only same-layer item would be the front courtyard and that must not be subtracted from a non-courtyard layer.

Definition at line 96 of file test_shape_hatch_knockout.cpp.

References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), SHAPE_POLY_SET::OutlineCount(), and User_1.