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

Method get

js/meshIndex.js:79–83  ·  view source on GitHub ↗

Value stored for (x,y,z)'s grid cell, or -1 if absent.

(x, y, z)

Source from the content-addressed store, hash-verified

77 const s = this._slot(oqx[i], oqy[i], oqz[i]);
78 this._qx[s] = oqx[i]; this._qy[s] = oqy[i]; this._qz[s] = oqz[i];
79 this._val[s] = oval[i];
80 }
81 }
82
83 /** Value stored for (x,y,z)'s grid cell, or -1 if absent. */
84 get(x, y, z) {
85 const q = this.quant;
86 const i = this._slot(Math.round(x * q), Math.round(y * q), Math.round(z * q));

Callers 15

openAfterImportFunction · 0.80
buildTriGridFunction · 0.80
closestDistanceFunction · 0.80
statsFunction · 0.80
openAfterImportFunction · 0.80
countEdgeDefectsFunction · 0.80
resolveTJunctionsFunction · 0.80
buildAdjacencyFunction · 0.80
findOverlappingTrianglesFunction · 0.80
getEdgePositionsFunction · 0.80
loadFullPresetFunction · 0.80

Calls 1

_slotMethod · 0.95

Tested by

no test coverage detected