UNPKG

@itwin/core-frontend

Version:
26 lines 1.11 kB
/** @packageDocumentation * @module Rendering */ /** * Holds an array of indices into a VertexTable. Each index is a 24-bit unsigned integer. * The order of the indices specifies the order in which vertices are drawn. * @internal */ export declare class VertexIndices implements Iterable<number> { readonly data: Uint8Array; /** * Directly construct from an array of bytes in which each index occupies 3 contiguous bytes. * The length of the array must be a multiple of 3. This object takes ownership of the array. */ constructor(data: Uint8Array); /** Get the number of 24-bit indices. */ get length(): number; /** Convert an array of 24-bit unsigned integer values into a VertexIndices object. */ static fromArray(indices: number[]): VertexIndices; static encodeIndex(index: number, bytes: Uint8Array, byteIndex: number): void; setNthIndex(n: number, value: number): void; decodeIndex(index: number): number; decodeIndices(): number[]; [Symbol.iterator](): Generator<number, void, unknown>; } //# sourceMappingURL=VertexIndices.d.ts.map