How do i Render a Racetrack as a full Loop?

Hello i am having trouble trying to fix this(See the picture Below) problem with my racetrack i can create the mesh around a Spline(Catmull), but it does not render all the way like a loop, Does anyone know how to do this?

You can download my Catmull.cs on this thread, so you can help me figure this out.

2757395–198987–Catmull.cs (6.25 KB)

it seems like the easiest way would be to just create 2 new triangles to bridge the gap based on the vertices you already have.

Is there any other way than just bridging the gap and just changing how the triangles or vertices work, so it could fix the problem?

When creating meshes, typically, you “close the gap” at the end, by drawing your triangles from the end points of your array, back to the start points. I haven’t checked the math on your formulas, so I’m assuming they aren’t using a shortened version of Pi or anything, causing it to come up short.

But skimming your script, I can see where POS gets reset to 0. But I don’t see the actual mesh drawing where it points back to the start points.

Yeah i know but i don’t know how to do it(i learnt the mesh stuff that was used in the Catmull.cs from here). @Lloyd_RedironLabs