@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
19 lines (18 loc) • 581 B
TypeScript
import { Box3, Matrix4, BufferAttribute } from 'three';
type QuadBufferAttribute = Omit<BufferAttribute, 'count'> & {
count: BufferAttribute['count'];
};
export declare class QuadGeometry {
attributes: Record<string, QuadBufferAttribute>;
index: number[];
userData: {
[key: string]: any;
};
setAttribute(attribName: string, attribute: BufferAttribute): void;
setIndex(indices: number[]): void;
quadsCount(): number;
applyMatrix(matrix: Matrix4): QuadGeometry;
clone(): QuadGeometry;
boundingBox(target: Box3): void;
}
export {};