threejs-worldgen
    Preparing search index...

    Function roadRibbon

    • Builds a road ribbon along a polyline: resampled every step metres, draped on height (or the points' own y) with a smoothed centreline kept above the ground across its whole width, a carriageway, and either curbs and raised sidewalks or sloped verges down to the ground. uv is (metres across from the centreline, metres along), the convention of RoadSurface and threejs-city.

      Parameters

      • points: readonly PathPoint[]
      • input: Partial<RibbonOptions> = {}
      • Optionalheight: (x: number, z: number) => number

      Returns RibbonData