25#ifndef QA_COMMON_GEOMETRY_FIXTURES_GEOEMETRY__H
26#define QA_COMMON_GEOMETRY_FIXTURES_GEOEMETRY__H
128 for(
int i = 0; i < 4; i++ )
136 for(
int i = 4; i < 9; i++ )
145 for(
int i = 9; i < 12; i++ )
153 wrapLine.
Append(
SHAPE_ARC( { -4300000, -6950000 }, { 2000000, 0 }, { -4300000, 6950000 }, 0 ) );
154 wrapLine.
Append(
SHAPE_ARC( { -4300000, 2200000 }, { -2700000, 0 }, { -4300000, -2200000 }, 0 ) );
163 oline0.
Append( { 244000, 180000 } );
164 oline0.
Append(
SHAPE_ARC( { 582000, 232000 }, { 614000, 354000 }, { 450000, 436000 }, 0 ) );
165 oline0.
Append(
SHAPE_ARC( { 450000, 436000 }, { 310000, 480000 }, { 502000, 614000 }, 0 ) );
166 oline0.
Append( { 872000, 202000 } );
171 o0h1.
Append( { 370000, 482000 } );
172 o0h1.
Append(
SHAPE_ARC( { 342000, 576000 }, { 436000, 552000 }, { 474000, 622000 }, 0 ) );
173 o0h1.
Append(
SHAPE_ARC( { 474000, 622000 }, { 534000, 520000 }, { 518000, 470000 }, 0 ) );
178 o0h2.
Append(
SHAPE_ARC( { 680000, 286000 }, { 728000, 306000 }, { 760000, 258000 }, 0 ) );
179 o0h2.
Append(
SHAPE_ARC( { 760000, 258000 }, { 746000, 222000 }, { 686000, 260000 }, 0 ) );
187 oline1.
Append( { 640000, 840000 } );
188 oline1.
Append(
SHAPE_ARC( { 829000, 959000 }, { 990000, 736000 }, { 951000, 461000 }, 0 ) );
189 oline1.
Append(
SHAPE_ARC( { 951000, 461000 }, { 600000, 572000 }, { 620000, 726000 }, 0 ) );
194 o1h1.
Append( { 670000, 482000 } );
195 o1h1.
Append(
SHAPE_ARC( { 642000, 576000 }, { 736000, 652000 }, { 774000, 622000 }, 0 ) );
196 o1h1.
Append(
SHAPE_ARC( { 774000, 622000 }, { 834000, 520000 }, { 818000, 470000 }, 0 ) );
201 o1h2.
Append(
SHAPE_ARC( { 680000, 286000 }, { 728000, 306000 }, { 760000, 258000 }, 0 ) );
202 o1h2.
Append(
SHAPE_ARC( { 760000, 258000 }, { 746000, 222000 }, { 686000, 260000 }, 0 ) );
208 oline2.
Append( { 340000, 540000 } );
209 oline2.
Append(
SHAPE_ARC( { 629000, 659000 }, { 790000, 436000 }, { 751000, 161000 }, 0 ) );
210 oline2.
Append(
SHAPE_ARC( { 651000, 161000 }, { 300000, 272000 }, { 320000, 426000 }, 0 ) );
215 o2h2.
Append(
SHAPE_ARC( { 680000, 486000 }, { 728000, 506000 }, { 760000, 458000 }, 0 ) );
216 o2h2.
Append(
SHAPE_ARC( { 760000, 458000 }, { 746000, 422000 }, { 686000, 460000 }, 0 ) );
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
void SetClosed(bool aClosed)
Mark the line chain as closed (i.e.
void Clear()
Remove all points from the line chain.
void Append(int aX, int aY, bool aAllowDuplication=false)
Append a new point at the end of the line chain.
Represent a set of closed polygons.
int AddOutline(const SHAPE_LINE_CHAIN &aOutline)
Adds a new outline to the set and returns its index.
int AddHole(const SHAPE_LINE_CHAIN &aHole, int aOutline=-1)
Adds a new hole to the given outline (default: last) and returns its index.
int NewOutline()
Creates a new empty polygon in the set and returns its index.
Common data for some of the SHAPE_POLY_SET tests:
SHAPE_POLY_SET uniqueVertexPolySet
SHAPE_POLY_SET holeyCurvedPolySingle
Polygon with a single outline + multiple holes.
std::vector< SEG > holeySegments
std::vector< VECTOR2I > holeyPoints
SHAPE_POLY_SET holeyCurvedPolyInter
Polygon with a single outlines + multiple holes.
SHAPE_POLY_SET curvedPolyWrapRound
Causes arc wraparound when reloading from Clipper see https://gitlab.com/kicad/code/kicad/-/issues/96...
SHAPE_POLY_SET solidPolySet
CommonTestData()
Constructor.
SHAPE_POLY_SET holeyPolySet
SHAPE_POLY_SET emptyPolySet
std::vector< VECTOR2I > uniquePoints
SHAPE_POLY_SET holeyCurvedPolyMulti
Polygon with a multiple outlines + multiple holes.