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

Method _alloc

js/meshIndex.js:44–51  ·  view source on GitHub ↗
(cap)

Source from the content-addressed store, hash-verified

42 const target = Math.max(16, Math.ceil(expected / 0.6));
43 while (cap < target) cap *= 2;
44 this._alloc(cap);
45 }
46
47 get size() { return this._size; }
48
49 _alloc(cap) {
50 this._cap = cap;
51 this._mask = cap - 1;
52 this._qx = new Float64Array(cap);
53 this._qy = new Float64Array(cap);
54 this._qz = new Float64Array(cap);

Callers 2

constructorMethod · 0.95
_growMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected