UNPKG

1.13 kBTypeScriptView Raw
1import { BufferGeometry } from '../core/BufferGeometry';
2
3export class BoxGeometry extends BufferGeometry {
4 /**
5 * @param [width=1] — Width of the sides on the X axis.
6 * @param [height=1] — Height of the sides on the Y axis.
7 * @param [depth=1] — Depth of the sides on the Z axis.
8 * @param [widthSegments=1] — Number of segmented faces along the width of the sides.
9 * @param [heightSegments=1] — Number of segmented faces along the height of the sides.
10 * @param [depthSegments=1] — Number of segmented faces along the depth of the sides.
11 */
12 constructor(
13 width?: number,
14 height?: number,
15 depth?: number,
16 widthSegments?: number,
17 heightSegments?: number,
18 depthSegments?: number,
19 );
20
21 /**
22 * @default 'BoxGeometry'
23 */
24 type: string;
25
26 parameters: {
27 width: number;
28 height: number;
29 depth: number;
30 widthSegments: number;
31 heightSegments: number;
32 depthSegments: number;
33 };
34
35 static fromJSON(data: any): BoxGeometry;
36}
37
38export { BoxGeometry as BoxBufferGeometry };