Create terrain using marching cubes and heightmaps

I really want to create the terrain like this -

http://indiegamemag.com/wp-content/uploads/2015/10/Astroneer-jump.png

But don’t know how to use Marching Cubes and heightmaps for terrain,

Can anyone please help me with that?

In c++ or blueprints