threejs-worldgen
    Preparing search index...

    Function roadGeometry

    • Builds every road surface of a graph as one mesh, relative to origin: carriageways following their graded profiles, raised sidewalks with kerbs where a road has them, a disc at each junction and bend, and bridges as decks with parapets standing on piers down to ground. uv = (metres across from the centreline, metres along the road), for markings and wear.

      Parameters

      Returns MeshData