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

Function cellKey

js/meshValidation.js:131–131  ·  view source on GitHub ↗
(ix, iy, iz)

Source from the content-addressed store, hash-verified

129 }
130 extents.sort();
131 const cellSize = Math.max(extents[triCount >> 1] * 2, 1e-6);
132 const invCell = 1 / cellSize;
133
134 // Insert triangles into spatial grid (each triangle may span multiple cells)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected