navcat docs
    Preparing search index...

    Type Alias PolyMesh

    Represents a polygon mesh suitable for use in building a navigation mesh.

    type PolyMesh = {
        areas: number[];
        borderSize: number;
        bounds: Box3;
        cellHeight: number;
        cellSize: number;
        flags: number[];
        localHeight: number;
        localWidth: number;
        maxEdgeError: number;
        maxVerticesPerPoly: number;
        nPolys: number;
        nVertices: number;
        polys: number[];
        regions: number[];
        vertices: number[];
    }
    Index

    Properties

    areas: number[]

    The area id assigned to each polygon. Length: npolys

    borderSize: number

    The AABB border size used to generate the source data from which the mesh was derived

    bounds: Box3

    the bounds in world space

    cellHeight: number

    The height of each cell. (The minimum increment along the y-axis.)

    cellSize: number

    The size of each cell. (On the xz-plane.)

    flags: number[]

    The user defined flags for each polygon. Length: npolys

    localHeight: number

    the height in local space

    localWidth: number

    the width in local space

    maxEdgeError: number

    The max error of the polygon edges in the mesh

    maxVerticesPerPoly: number

    The maximum number of vertices per polygon

    nPolys: number

    The number of polygons

    nVertices: number

    The number of vertices

    polys: number[]

    Polygon vertex indices. Length: npolys * nvp

    regions: number[]

    The region id assigned to each polygon. Length: npolys

    vertices: number[]

    The mesh vertices. Form: (x, y, z) * nverts