API

Interface CapsuleOptions

Options for createCapsuleData. Subset of Babylon's CreateCapsule.

interface CapsuleOptions {
    bottomCapSubdivisions?: number;
    capSubdivisions?: number;
    height?: number;
    radius?: number;
    radiusBottom?: number;
    radiusTop?: number;
    subdivisions?: number;
    tessellation?: number;
    topCapSubdivisions?: number;
}
Index
bottomCapSubdivisions?: number

Number of segments for the bottom cap; defaults to capSubdivisions.

capSubdivisions?: number

Number of segments per cap; defaults applied to both caps. Default 6.

height?: number

Total height of the capsule including both caps. Default 1.

radius?: number

Radius of the cylindrical body and both caps. Default 0.25.

radiusBottom?: number

Radius of the bottom cap; defaults to radius.

radiusTop?: number

Radius of the top cap; defaults to radius.

subdivisions?: number

Number of height segments along the cylindrical body. Default 2.

tessellation?: number

Number of radial segments around the capsule. Default 16.

topCapSubdivisions?: number

Number of segments for the top cap; defaults to capSubdivisions.