Mouse generated terrain

Hi all!
I've been playing around with box2das3 and it's definitely a fun engine.
I've really only been playing with boxes and circles, and I'd like to get into something a bit more fleshed out.

Right now I'm trying to create a terrain ( or at least a surface ) based on a line drawn by the user ( kinda like linerider, though the gameplay idea I have is quite different ).
After looking in the forum I found a few ideas, but nothing really specific.

As of now, what would be the best way to go about it?
I can't use a svg parser since the terrain is drawn by the user.
I seem to understand I should be looking at the EdgeShape but I can't find much examples about it.
Isn't there a simple way to do this?

Thanks in advance~

Original thread: https://box2d.org/forum/viewtopic.php?t=3904