({ pixelsPerEdge, pixMm, surfaceArea, amplitude })
| 204 | out[t*3 + 2] = Math.hypot(ax-cx, ay-cy, az-cz); |
| 205 | } |
| 206 | return out; |
| 207 | } |
| 208 | |
| 209 | function simulateFromEdges(triEdges, edge) { |
| 210 | const memo = new Map(); |
| 211 | const triCount = triEdges.length / 3; |
| 212 | let total = 0; |
| 213 | for (let i = 0; i < triCount; i++) { |
| 214 | const o = i * 3; |
| 215 | const a = triEdges[o], b = triEdges[o+1], c = triEdges[o+2]; |
| 216 | if (a <= edge && b <= edge && c <= edge) { total += 1; continue; } |
| 217 | total += simTri(a, b, c, edge, memo, 0); |
| 218 | } |
no outgoing calls
no test coverage detected