Interface: Capsule3DOptions
Defined in: src/mobjects/three-d/Capsule3D.ts:15
Options for creating a Capsule3D.
Extends
OrganicMeshOptions
Properties
bend?
optionalbend: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?
optionalcapSegments:number
Defined in: src/mobjects/three-d/Capsule3D.ts:33
Latitude rings in each round end. Default: 8
center?
optionalcenter:Vector3Tuple
Defined in: src/mobjects/three-d/organicMesh.ts:416
Center position [x, y, z]. Default: [0, 0, 0]
Inherited from
OrganicMeshOptions.center
color?
optionalcolor:string
Defined in: src/mobjects/three-d/organicMesh.ts:412
Color as a CSS color string.
Inherited from
OrganicMeshOptions.color
direction?
optionaldirection: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?
optionallength: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?
optionallengthSegments:number
Defined in: src/mobjects/three-d/Capsule3D.ts:31
Segments along the spine. Default: 16 (1 when straight)
opacity?
optionalopacity:number
Defined in: src/mobjects/three-d/organicMesh.ts:414
Opacity from 0 to 1. Default: 1
Inherited from
OrganicMeshOptions.opacity
radialSegments?
optionalradialSegments:number
Defined in: src/mobjects/three-d/Capsule3D.ts:29
Segments around the rod. Default: 24
radius?
optionalradius:number
Defined in: src/mobjects/three-d/Capsule3D.ts:17
Radius of the rod and of its round ends. Default: 0.25