(i, context)
| 8070 | return polygon.value(); |
| 8071 | } |
| 8072 | renderTriangle(i, context) { |
| 8073 | const buffer = context == null ? context = new Path : undefined; |
| 8074 | const {points, triangles} = this; |
| 8075 | const t0 = triangles[i *= 3] * 2; |
| 8076 | const t1 = triangles[i + 1] * 2; |
| 8077 | const t2 = triangles[i + 2] * 2; |
| 8078 | context.moveTo(points[t0], points[t0 + 1]); |
| 8079 | context.lineTo(points[t1], points[t1 + 1]); |
| 8080 | context.lineTo(points[t2], points[t2 + 1]); |
| 8081 | context.closePath(); |
| 8082 | return buffer && buffer.value(); |
| 8083 | } |
| 8084 | *trianglePolygons() { |
| 8085 | const {triangles} = this; |
| 8086 | for (let i = 0, n = triangles.length / 3; i < n; ++i) { |
no test coverage detected