File size: 768 Bytes
2b7aae2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { BufferGeometry } from '../core/BufferGeometry';

export class CapsuleGeometry extends BufferGeometry {
	/**
	 * @param [radius=1] — Radius of the capsule.
	 * @param [length=1] — Length of the middle section.
	 * @param [capSegments=4] — Number of curve segments used to build the caps.
	 * @param [radialSegments=8] — Number of segmented faces around the circumference of the capsule.
	 */
	constructor(radius?: number, length?: number, capSegments?: number, radialSegments?: number);

	/**
	 * @default 'CapsuleGeometry'
	 */
	type: string;

	parameters: {
		radius: number;
		length: number;
		capSegments: number;
		radialSegments: number;
	};

	static fromJSON(data: any): CapsuleGeometry;
}

export { CapsuleGeometry as CapsuleBufferGeometry };