UNPKG

1.39 kBTypeScriptView Raw
1import { BufferGeometry } from '../core/BufferGeometry';
2
3export class CylinderGeometry extends BufferGeometry {
4 /**
5 * @param [radiusTop=1] — Radius of the cylinder at the top.
6 * @param [radiusBottom=1] — Radius of the cylinder at the bottom.
7 * @param [height=1] — Height of the cylinder.
8 * @param [radialSegments=8] — Number of segmented faces around the circumference of the cylinder.
9 * @param [heightSegments=1] — Number of rows of faces along the height of the cylinder.
10 * @param [openEnded=false] - A Boolean indicating whether or not to cap the ends of the cylinder.
11 * @param [thetaStart=0]
12 * @param [thetaLength=Math.PI * 2]
13 */
14 constructor(
15 radiusTop?: number,
16 radiusBottom?: number,
17 height?: number,
18 radialSegments?: number,
19 heightSegments?: number,
20 openEnded?: boolean,
21 thetaStart?: number,
22 thetaLength?: number,
23 );
24
25 /**
26 * @default 'CylinderGeometry'
27 */
28 type: string;
29
30 parameters: {
31 radiusTop: number;
32 radiusBottom: number;
33 height: number;
34 radialSegments: number;
35 heightSegments: number;
36 openEnded: boolean;
37 thetaStart: number;
38 thetaLength: number;
39 };
40
41 static fromJSON(data: any): CylinderGeometry;
42}
43
44export { CylinderGeometry as CylinderBufferGeometry };