Skip to main content

Interface: Capsule3DOptions

Defined in: src/mobjects/three-d/Capsule3D.ts:15

Options for creating a Capsule3D.

Extends​

  • OrganicMeshOptions

Properties​

bend?​

optional bend: number

Defined in: src/mobjects/three-d/Capsule3D.ts:25

Bend angle in radians. The spine follows a circular arc that turns by this angle from one end to the other. Default bend plane: the spine curves toward +X (for the default +Z direction, toward the +X side). Default: 0 (straight)


capSegments?​

optional capSegments: number

Defined in: src/mobjects/three-d/Capsule3D.ts:33

Latitude rings in each round end. Default: 8


center?​

optional center: Vector3Tuple

Defined in: src/mobjects/three-d/organicMesh.ts:416

Center position [x, y, z]. Default: [0, 0, 0]

Inherited from​

OrganicMeshOptions.center


color?​

optional color: string

Defined in: src/mobjects/three-d/organicMesh.ts:412

Color as a CSS color string.

Inherited from​

OrganicMeshOptions.color


direction?​

optional direction: Vector3Tuple

Defined in: src/mobjects/three-d/Capsule3D.ts:27

Direction of the spine (Manim's up axis, +Z, by default). Default: [0, 0, 1]


length?​

optional length: number

Defined in: src/mobjects/three-d/Capsule3D.ts:19

Length of the spine between the two end centres (caps add radius each side). Default: 1


lengthSegments?​

optional lengthSegments: number

Defined in: src/mobjects/three-d/Capsule3D.ts:31

Segments along the spine. Default: 16 (1 when straight)


opacity?​

optional opacity: number

Defined in: src/mobjects/three-d/organicMesh.ts:414

Opacity from 0 to 1. Default: 1

Inherited from​

OrganicMeshOptions.opacity


radialSegments?​

optional radialSegments: number

Defined in: src/mobjects/three-d/Capsule3D.ts:29

Segments around the rod. Default: 24


radius?​

optional radius: number

Defined in: src/mobjects/three-d/Capsule3D.ts:17

Radius of the rod and of its round ends. Default: 0.25