- Home /
Question by
MechaWolf99 · Sep 26, 2018 at 08:20 PM ·
c#meshgenerationprocedural meshbezier
Mesh generated from bezier curve loop going outside loop
Hello, I am generating a mesh plane that conforms to a bezier curve loop.
I get evenly spaced points along along the curve, and set them as the vertices of the new mesh. The problem comes when setting the triangles.
If a point along the bezier curve comes in to the loop too much then the mesh will no longer follow the curve, and will cut across it.
As shown here. The red cylinder is the actual start of the loop and goes clockwise around the image
The way I am setting the triangles right now is setting opposites. So if the first point is 3 away from the start, then the second point would be 3 away from the end.
I am really not sure how to can fix this. Any ideas would be greatly appreciated.
Comment