I'm trying to write a mesh importer, that takes data from a plotting type software, and produces poly mesh in maya. There's a couple of areas I'm stuck on, but I'll just ask one question here. The data comes in as edges only, described by vertex a to vertex b. I know that it will produce convex polygons, without holes, so I don't need to check for stuff like that. I'm looking for a good method of walking through the edges to produce faces, and hence face connects, to give whats required for MFnMesh.
I can think of a couple of methods, for example checking the angle of the a-b vector with the previous edge, and if they keep turning in the same direction, it's the same face... But, I feel like I might be trying to re-invent the wheel here. Has anyone used a method to turn edges into faces, an existing algorithm perhaps?
Any help would be greatly appreciated.