Generate 3D road segment from 2D contour

Hi, all!

How do you generate road segments over spline extruding 2D contour shapes?

For this problem, i used cubic bezier for make a 2D lines, for generate a mesh, i’ve create a script for generate mesh, A Mesh Generator or you cold use CustomGeometry Component, but the mesh doesnt export.
Sorry for the english