08-13-2013, 10:13 AM
As I see it, the problem is overlapping. The mesh builder advances the shape along the spline and connect the vertices to form triangles. If the spline is too curvy and distance between two shape segments is too short, segments will overlap and as a result the mesh looks ugly. So (at least in theory out of my head) handling this is a two step process: Detecting overlapping segments and resolving it.
Detecting isn't hard, basically Plane-Plane and Line-Line intersections. Solving that may be harder. Either welding vertices or repositioning them in a clever way might solve the problem.
I may be totally wrong and I didn't tried it yet. If you've got a great idea, let me know.
Detecting isn't hard, basically Plane-Plane and Line-Line intersections. Solving that may be harder. Either welding vertices or repositioning them in a clever way might solve the problem.
I may be totally wrong and I didn't tried it yet. If you've got a great idea, let me know.

