pmneila / PyMCubes

Marching cubes (and related tools) for Python
BSD 3-Clause "New" or "Revised" License
692 stars 87 forks source link

reduced memory footprint of marching_cubes #7

Closed zebastian closed 7 years ago

zebastian commented 7 years ago

memory size_t *shared_indices was the memory limiting var in marching_cubes and took 24byte per voxel while rendering the mesh. Since the var is only needed for i and (i - 1) while processing in x dimension, the x dimension is removable, see usage of i_mod_2 and i_mod_2_inv

pmneila commented 7 years ago

Merged. Thank you!

zebastian commented 7 years ago

You are very welcome :)