import { type Box3 } from 'mathcat'; import { type BuildContextState } from './build-context.js'; import type { ContourSet } from './contour-set.js'; /** * Represents a polygon mesh suitable for use in building a navigation mesh. */ export type PolyMesh = { /** The mesh vertices. Form: (x, y, z) * nverts */ vertices: number[]; /** Polygon vertex indices. Length: npolys * nvp */ polys: number[]; /** The region id assigned to each polygon. Length: npolys */ regions: number[]; /** The user defined flags for each polygon. Length: npolys */ flags: number[]; /** The area id assigned to each polygon. Length: npolys */ areas: number[]; /** The number of vertices */ nVertices: number; /** The number of polygons */ nPolys: number; /** The maximum number of vertices per polygon */ maxVerticesPerPoly: number; /** the bounds in world space */ bounds: Box3; /** the width in local space */ localWidth: number; /** the height in local space */ localHeight: number; /** The size of each cell. (On the xz-plane.) */ cellSize: number; /** The height of each cell. (The minimum increment along the y-axis.) */ cellHeight: number; /** The AABB border size used to generate the source data from which the mesh was derived */ borderSize: number; /** The max error of the polygon edges in the mesh */ maxEdgeError: number; }; export declare const buildPolyMesh: (ctx: BuildContextState, contourSet: ContourSet, maxVerticesPerPoly: number) => PolyMesh;