Skip to main content

Interface: Shell3DOptions

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

Options for creating a Shell3D.

Extends​

  • OrganicMeshOptions

Properties​

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


cut?​

optional cut: Shell3DCut

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

Cut mode. Default: 'plane'


cutDirection?​

optional cutDirection: Vector3Tuple

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

Normal of the cut plane, or the axis of the wedge (Manim's up, +Z, by default). Default: [0, 0, 1]


cutOffset?​

optional cutOffset: number

Defined in: src/mobjects/three-d/Shell3D.ts:36

Plane cut only: plane position along cutDirection, as a fraction of the outer radius. Must satisfy |cutOffset * outerRadius| < innerRadius. Default: 0.3


innerColor?​

optional innerColor: string

Defined in: src/mobjects/three-d/Shell3D.ts:47

Color of the inner face. Default: the main color


innerRadius?​

optional innerRadius: number

Defined in: src/mobjects/three-d/Shell3D.ts:23

Inner radius of the wall. Default: outerRadius - thickness


opacity?​

optional opacity: number

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

Opacity from 0 to 1. Default: 1

Inherited from​

OrganicMeshOptions.opacity


outerRadius?​

optional outerRadius: number

Defined in: src/mobjects/three-d/Shell3D.ts:21

Outer radius of the wall. Default: 1


rimColor?​

optional rimColor: string

Defined in: src/mobjects/three-d/Shell3D.ts:49

Color of the flat cut rim (the visible wall band). Default: the main color


scale?​

optional scale: Vector3Tuple

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

Per-axis scale [x, y, z] that turns the sphere into an ellipsoid. Default: [1, 1, 1]


segments?​

optional segments: number

Defined in: src/mobjects/three-d/Shell3D.ts:51

Segments around the full circle. Default: 64


thickness?​

optional thickness: number

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

Wall thickness, used when innerRadius is not given. Default: 0.1 * outerRadius


wedgeAngle?​

optional wedgeAngle: number

Defined in: src/mobjects/three-d/Shell3D.ts:45

Wedge cut only: angle of the removed wedge in radians. Default: PI / 2


wedgeStart?​

optional wedgeStart: number

Defined in: src/mobjects/three-d/Shell3D.ts:43

Wedge cut only: start azimuth of the removed wedge in radians, measured right-handed about cutDirection. Azimuth 0 is the image of +X under the rotation that takes +Y onto cutDirection (for the default +Z axis: +X, and PI / 2 is +Y). Default: -PI / 4