25 #ifndef QA_COMMON_GEOMETRY_FIXTURES_GEOEMETRY__H 26 #define QA_COMMON_GEOMETRY_FIXTURES_GEOEMETRY__H 119 for(
int i = 0; i < 4; i++ )
127 for(
int i = 4; i < 9; i++ )
136 for(
int i = 9; i < 12; i++ )
150 #endif // QA_COMMON_GEOMETRY_FIXTURES_GEOEMETRY__H
Common data for some of the SHAPE_POLY_SET tests:
SHAPE_POLY_SET emptyPolySet
void Append(int aX, int aY, bool aAllowDuplication=false)
Function Append()
CommonTestData()
Constructor.
void SetClosed(bool aClosed)
Function SetClosed()
std::vector< VECTOR2I > uniquePoints
std::vector< VECTOR2I > holeyPoints
Represent a set of closed polygons.
int NewOutline()
Creates a new hole in a given outline.
int AddHole(const SHAPE_LINE_CHAIN &aHole, int aOutline=-1)
Return the area of this poly set.
SHAPE_POLY_SET uniqueVertexPolySet
SHAPE_POLY_SET holeyPolySet
int AddOutline(const SHAPE_LINE_CHAIN &aOutline)
Adds a new hole to the given outline (default: last) and returns its index.
std::vector< SEG > holeySegments
void Clear()
Function Clear() Removes all points from the line chain.
SHAPE_POLY_SET solidPolySet