What I'm trying to achieve is collisions with ground shapes like the ones in Soosiz:

I'm guessing that this could be done with collisions with a closed Bezier Path? Or with a B-Spline?
I seen that the cocos source has functions like bezierat, which I could use to test for intersection with a bezier, but are there better intersection methods, or better curve types to use?
I'm not necessarily looking for code (of course, that would be nice), but I'd like to know where I should be looking (names of algorithms, best data structures to represent curves, etc)
Thanks in advance.