Basically, Gleed exports an xml serialized with nodes and tags for every object you draw with it.
In case of Path, he exports a serialized object with a x,y coordinate for every point that defines the path. I use these coordinates to define an Vector2 array to pass step-by-step to the Path (Path.Add).
Ok forget about Farseers path class. It has nothing to do with the kind of path you have in mind. As I already said please take a look at the Box2D manual first to understand the basics of shapes, bodies and fixtures.
I used a farseer path because the char must walk not on a polygonal platform (like a rectangle) but on a ground composed by many lines in order to form an irregular terrain (like the Tank demo, or just think about the first level of Ghouls n Ghosts). I'll
check the Edge and Loop to see if i can use them.
Your character will always walk on "polygonal platforms" cause that is the only thing Farseer knows (except from circles). Edge shapes are in principal just a closed polygon comprising of two points. Loop shapes are a (closed) list of concatenated
Or maybe i must use a polygonal shape, but it must to be closed, so i'll try to define a polygonal with vertices taken from the vector2 array but with 2 more vertices to unite the end point with the start point.
(a)_/\____/\__(b) <--- this is my path
|________| <---- this is the 2-vertices that i could add (the ground under the path) for obtain a closed polygon. The vertices unites (a) with (b).
Three "easy" ways to do this:
1) Recreate your path with a series of edge shapes. Exactly as it is represented within Gleed.
2) Create the closed polygon you describe here and convert that to a loop shape. This should be the easiest solution as there exist a factory which can create it from a vertices object.
3) Create several polygon shapes that represent your landscape. Farseer can only handle convex polygons with a maximum of 8 points though. So you need to decompose your landscape polygon into those. Farseer has tools for that, but its not worth the hassle.
You should get better results with solution 2)
Be warned though that you will probably run into problems, with your character getting stuck at seams within your landscape. See: 13. 2. http://www.box2d.org/manual.html#_Toc258082979
There are several threads here, which address these problems and suggest setups for characters in such an environment (if you are going for something like Ghouls 'n Ghosts)