UNPKG

arx-level-generator

Version:
19 lines (18 loc) 687 B
import { BufferGeometry } from 'three'; import { Vector3 } from '../../Vector3.js'; export type GeometryVertex = { idx: number; vector: Vector3; materialIndex?: number; }; /** * Gets the vertices of a geometry. * Should be used for stuff, like terrain manipulation as indexed geometries will not be unpacked * into individual vertices. */ export declare const getVertices: (geometry: BufferGeometry) => GeometryVertex[]; /** * Gets the non-indexed version of vertices of a geometry. * Should be used when converting it to Arx polygon data as Arx uses non-indexed geometry. */ export declare const getNonIndexedVertices: (geometry: BufferGeometry) => GeometryVertex[];