import { Accessor } from "../types/gltf"; /** * 快捷创建顶点的方法 * * 5120 BYTE 5121 UNSIGNED_BYTE 5122 SHORT 5123 UNSIGNED_SHORT 5125 UNSIGNED_INT 5126 FLOAT * @param componentType The datatype of components in the attribute. componentType: 5120 | 5121 | 5122 | 5123 | 5125 | 5126 | number; * @param type Specifies if the attribute is a scalar, vector, or matrix. type: "SCALAR" | "VEC2" | "VEC3" | "VEC4" | "MAT2" | "MAT3" | "MAT4" | string; * @param data 顶点数组 * @param hasMinMax 是否创建min/max属性,只有POSITION是必须的。 */ export declare function createAttribute(componentType: Accessor['componentType'], type: Accessor['type'], data: number[], hasMinMax?: boolean): Accessor | undefined; /** * 快捷创建索引的方法 * @param componentType 5123 | 5125 * @param data 索引数组 */ export declare function createIndices(componentType: 5123 | 5125, data: number[]): Accessor | undefined;