A flexible system for generating greedy meshes of ndarrays, version 1.0.3. It compiles a custom mesher function based on provided options like order, skip, merge, and append closures. Unlike hardcoded greedy meshing algorithms, this package allows full control over traversal order and voxel merging logic. The library is optimized for ndarray data structures and is commonly used in voxel-based graphics and geometry processing. The release cadence is archival; no updates since 2013. Key differentiators: runtime code generation, customizable merging criteria, and support for arbitrary dimensions.
npm install greedy-mesherNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a custom mesher for a 2D ndarray, merging adjacent equal voxels (excluding 0) and appending rectangles.
Ensure order.length equals ndarray dimension.
Design append to match the permutation given in order.
Set useGetter: true when passing an ndarray.
N/A
Provide an order array with length equal to the number of dimensions of the input ndarray.
Add an 'append' function to the options object.
Set useGetter: true in the options when passing an ndarray.