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.
 
 BOOST_AUTO_TEST_CASE (HatchingIsBuiltWithoutRendering)
 
 BOOST_AUTO_TEST_CASE (CrossHatchingIsBuiltWithoutRendering)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

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 108 of file test_shape_hatch_knockout.cpp.

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

◆ BOOST_AUTO_TEST_CASE() [2/4]

BOOST_AUTO_TEST_CASE ( CrossHatchingIsBuiltWithoutRendering )

Definition at line 130 of file test_shape_hatch_knockout.cpp.

References CROSS_HATCH, and User_1.

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( HatchingIsBuiltWithoutRendering )

Definition at line 120 of file test_shape_hatch_knockout.cpp.

References User_1.

◆ BOOST_AUTO_TEST_CASE() [4/4]

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 93 of file test_shape_hatch_knockout.cpp.

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