MCPcopy Create free account
hub / github.com/CNCKitchen/stlTexturizer / computeRecommendedMaxTri

Function computeRecommendedMaxTri

js/smartResolution.js:206–215  ·  view source on GitHub ↗
({ pixelsPerEdge, pixMm, surfaceArea, amplitude })

Source from the content-addressed store, hash-verified

204 out[t*3 + 2] = Math.hypot(ax-cx, ay-cy, az-cz);
205 }
206 return out;
207}
208
209function 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 }

Callers 1

computeSmartResolutionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected