A while ago I made a library based on @pspeed IsoSurface library that you can find here.
https://hub.jmonkeyengine.org/t/how-to-grass-reborn-the-forest/
I don’t know if it’s going to be of any help and it only support Grass. But you might be able to find some ideas. You can PM me if you want some explanation.