| 
    KiCad PCB EDA Suite
    
   | 
 
#include <string>#include <tuple>#include <qa_utils/wx_utils/unit_test_utils.h>#include <geometry/shape_line_chain.h>#include <geometry/shape_poly_set.h>#include "fixtures_geometry.h"#include "geom_test_utils.h"Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (TestSimplify) | |
| Simplify the polygon a large number of times and check that the area does not change and also that the arcs are the same before and after.   | |
| BOOST_AUTO_TEST_CASE (TestIntersectUnion) | |
| Check intersection and union between two polygons.   | |
| BOOST_AUTO_TEST_CASE (TestClearArcs) | |
| Test SHAPE_POLY_SET::ClearArcs.   | |
| BOOST_AUTO_TEST_CASE | ( | TestClearArcs | ) | 
Test SHAPE_POLY_SET::ClearArcs.
Definition at line 144 of file test_shape_poly_set_arcs.cpp.
References SHAPE_POLY_SET::Area(), BOOST_CHECK_EQUAL(), BOOST_TEST_CONTEXT(), SHAPE_POLY_SET::ClearArcs(), SHAPE_POLY_SET::GetArcs(), KI_TEST::CommonTestData::holeyCurvedPolyInter, KI_TEST::CommonTestData::holeyCurvedPolyMulti, KI_TEST::CommonTestData::holeyCurvedPolySingle, and GEOM_TEST::IsPolySetValid().
| BOOST_AUTO_TEST_CASE | ( | TestIntersectUnion | ) | 
Check intersection and union between two polygons.
Definition at line 92 of file test_shape_poly_set_arcs.cpp.
References SHAPE_POLY_SET::Area(), SHAPE_POLY_SET::BooleanAdd(), SHAPE_POLY_SET::BooleanIntersection(), BOOST_TEST_CONTEXT(), SHAPE_POLY_SET::ClearArcs(), KI_TEST::CommonTestData::holeyCurvedPolyInter, KI_TEST::CommonTestData::holeyCurvedPolySingle, and GEOM_TEST::IsPolySetValid().
| BOOST_AUTO_TEST_CASE | ( | TestSimplify | ) | 
Simplify the polygon a large number of times and check that the area does not change and also that the arcs are the same before and after.
Definition at line 39 of file test_shape_poly_set_arcs.cpp.
References SHAPE_POLY_SET::Area(), BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_TEST_CONTEXT(), KI_TEST::CheckUnorderedMatches(), KI_TEST::CommonTestData::curvedPolyWrapRound, SHAPE_POLY_SET::GetArcs(), KI_TEST::CommonTestData::holeyCurvedPolySingle, GEOM_TEST::IsPolySetValid(), SHAPE_ARC::Reversed(), and SHAPE_POLY_SET::Simplify().