Labelmap image to polydata via marching cubes code for VTK.js

I made a small library that generates polydata meshes from labelmaps/segmentations for VTK.js

Demo: labelmap-polydata Demo

Not much to it, but it does have some gotchas worked around for aligning the polydata’s on the background image when the image has a non identiy direction matrix. Enjoy.

1 Like