UNPKG

gpu-curtains

Version:

gpu-curtains is a 3D WebGPU rendering engine. It can be used as a standalone 3D engine, but also includes extra classes focused on mapping 3d objects to DOM elements; It allows users to synchronize values such as position, sizing, or scale between them.

25 lines (24 loc) 839 B
import { IndexedGeometry } from '../../core/geometries/IndexedGeometry'; import { GeometryBaseParams } from '../../types/Geometries'; /** * Parameters used to create a {@link BoxGeometry} */ export interface BoxGeometryParams extends GeometryBaseParams { /** Number of segments along the X axis */ widthSegments?: number; /** Number of segments along the Y axis */ heightSegments?: number; /** Number of segments along the Z axis */ depthSegments?: number; } /** * Helper to easily create 3D box indexed geometries. * * @example * ```javascript * const boxGeometry = new BoxGeometry() * ``` */ export declare class BoxGeometry extends IndexedGeometry { constructor({ instancesCount, vertexBuffers, topology, mapBuffersAtCreation, widthSegments, heightSegments, depthSegments, }?: BoxGeometryParams); }