import { ReadonlyUint32Array } from "./readonly_typed_array.js"; /** * Map where the index is the triangle index of a geometry object, and the * values are the local IDs of the matching elements. */ export declare class TriangleElementMap { private map_; private size_; static readonly NO_ELEMENT = 4294967295; private currentSection_?; private inverse_?; /** * Create a triangle element map with an initial allocation capacity. * * @param initialCapacity The initial allocation size for the map to grow up to */ constructor(initialCapacity?: number); /** * Get the number of triangles in the map. * * @return {number} Return the size of this. */ get size(): number; /** * Get the current forwards mapping, note this is a snapshot * at the current time. * * @return {ReadonlyUint32Array} The forwards mapping. */ get map(): ReadonlyUint32Array; /** * Add a mapping range for a particular element. * * @param beginTriangleIndex The beginning triangle index (inclusive) * @param endTriangleIndex The ending triangle index (exclusive) * @param elementLocalIndex The element index to fill in. */ addMappingRange(beginTriangleIndex: number, endTriangleIndex: number, elementLocalIndex: number): void; /** * Get the inverse map from elements to triangle indices * * Note this is a snapshot at the current time. * * @return {ReadonlyMap< number, ReadonlyUint32Array >} */ get inverseMap(): ReadonlyMap; } //# sourceMappingURL=triangle_element_map.d.ts.map