@three-tile/lib
    Preparing search index...

    Class Martini

    Martini mesh tile generator (Mapbox's Awesome Right-Triangulated Irregular Networks, Improved).

    Represents a height map tile node using the RTIN method from the paper "Right Triangulated Irregular Networks".

    Based off the library https://github.com/mapbox/martini.

    Index

    Constructors

    • Constructor for the generator.

      Parameters

      • gridSize: number = 257

        Size of the grid.

      Returns Martini

    Properties

    coords: Uint16Array

    Coordinates of the points composing the mesh.

    gridSize: number

    Size of the grid to be generated.

    indices: Uint32Array

    Indices of the triangles faces.

    numParentTriangles: number

    Number of triangles in the parent node.

    numTriangles: number

    Number of triangles to be used in the tile.

    Methods

    • Parameters

      • terrain: Float32Array

      Returns MartiniTile