17 {
18
20
21 uint16_t indexMap[1024];
22 for (
int i = 0;
i < 1024; ++
i) {
24 }
26
27
35 &triangleIndices));
36
37
38 poly[2].set(102.5f, 55.330127f);
42 triangleIndices.
clear();
44 &triangleIndices));
45
46
47 poly[2].set(100 + 2.5f, 55);
49
52 triangleIndices.
clear();
54 &triangleIndices));
55
56
57 poly[0].set(-1.0e+37f, 1.0e+37f);
58 poly[1].set(1.0e+37f, 1.0e+37f);
59 poly[2].set(-1.0e+37f, -1.0e+37f);
63 triangleIndices.
clear();
65 &triangleIndices));
66
67
68 poly[0].set(-1.0e-38f, 1.0e-38f);
69 poly[1].set(-1.0e-38f, -1.0e-38f);
70 poly[2].set(1.0e-38f, 1.0e-38f);
72
75 triangleIndices.
clear();
77 &triangleIndices));
78
79
80 poly[0].set(-100 + 1.0e+9f, 55 - 1.0e+9f);
81 poly[1].set(100 + 1.0e+9f, 55 - 1.0e+9f);
82 poly[2].set(150 + 1.0e+9f, 100 - 1.0e+9f);
86 triangleIndices.
clear();
88 &triangleIndices));
89
90
91
116 triangleIndices.
clear();
118 &triangleIndices));
119
120
121 for (
int i = 0;
i < poly.
size(); ++
i) {
122 poly[
i].offset(1.0e+7f, 1.0e+7f);
123 }
125
128 triangleIndices.
clear();
130 &triangleIndices));
131
132
133 for (
int i = 0;
i < poly.
size(); ++
i) {
134 poly[
i].offset(4.0e+7f, 4.0e+7f);
135 }
139
140 triangleIndices.
clear();
142 &triangleIndices));
143
144
176 triangleIndices.
clear();
178 &triangleIndices));
179
180
197 triangleIndices.
clear();
199 &triangleIndices));
200
201
202 {
206 const int n = 500;
210 for (
int i = 0;
i < n;
i++) {
212 rad += drad;
214 rad += drad;
215 }
219 triangleIndices.
clear();
221 &triangleIndices));
222 }
223
224
241 triangleIndices.
clear();
242
243
245 &triangleIndices));
246
247
258 triangleIndices.
clear();
259
261 &triangleIndices));
262
263
274 triangleIndices.
clear();
275
277 &triangleIndices));
278
279
383 *poly.
append() =
SkPoint::Make(-44882437151680690189392273689542656.0000f, 134217728.0000f);
417 triangleIndices.
clear();
418
420 &triangleIndices));
421}
bool SkIsConvexPolygon(const SkPoint *polygonVerts, int polygonSize)
bool SkTriangulateSimplePolygon(const SkPoint *polygonVerts, uint16_t *indexMap, int polygonSize, SkTDArray< uint16_t > *triangleIndices)
bool SkIsSimplePolygon(const SkPoint *polygon, int polygonSize)
int SkGetPolygonWinding(const SkPoint *polygonVerts, int polygonSize)
#define SkScalarSin(radians)
#define SkScalarCos(radians)
#define REPORTER_ASSERT(r, cond,...)
static constexpr SkPoint Make(float x, float y)