KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_shape_poly_set_arcs.cpp File Reference
#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.
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

◆ BOOST_AUTO_TEST_CASE() [2/3]

◆ BOOST_AUTO_TEST_CASE() [3/3]

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(), KI_TEST::CheckUnorderedMatches(), KI_TEST::CommonTestData::curvedPolyWrapRound, SHAPE_POLY_SET::GetArcs(), KI_TEST::CommonTestData::holeyCurvedPolySingle, GEOM_TEST::IsPolySetValid(), SHAPE_POLY_SET::PM_FAST, SHAPE_ARC::Reversed(), and SHAPE_POLY_SET::Simplify().