/// import { Buffer } from 'node:buffer'; import { BinaryIO } from '../common/BinaryIO'; import { ArxVertex } from './Vertex'; import { ArxVector3 } from '../types'; /** @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/graphics/data/FastSceneFormat.h#L81 */ export type ArxPolygon = { vertices: [ArxVertex, ArxVertex, ArxVertex, ArxVertex]; tex: number; norm: ArxVector3; norm2: ArxVector3; normals?: [ArxVector3, ArxVector3, ArxVector3, ArxVector3]; transval: number; area: number; type: number; room: number; paddy?: number; }; export declare class Polygon { static readFrom(binary: BinaryIO): ArxPolygon; static accumulateFrom(polygon: ArxPolygon): Buffer; static sizeOf(): number; }