v1.4.5 — Large schematics no longer overflow the stack
Fixes large schematics failing to load with RangeError: Maximum call stack size exceeded.
Fix
BlockMeshBuildermerged geometry attributes viaarray.push(...Array.from(typedArray)), which spreads every float as a function argument. Past the JS engine's argument limit — a function of vertex count — that call throwsMaximum call stack size exceeded, so big schematics failed during mesh building. (Not URL-specific; purely a size threshold.)- Replaced with
mergeBufferGeometries: one preallocated typed array per attribute, filled with bulk.set()copies, and 16/32-bit indices chosen by vertex count. It's overflow-proof and faster — nonumber[]boxing, noArray.fromintermediates, no GC churn from a growing array. - Adds unit tests, including the large-merge regression and the 32-bit-index path.