Skip to main content

Interface: PrismOptions

Defined in: src/mobjects/three-d/ThreeDExtensions.ts:10

Options for creating a Prism

Properties​

center?​

optional center: Vector3Tuple

Defined in: src/mobjects/three-d/ThreeDExtensions.ts:18

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


color?​

optional color: string

Defined in: src/mobjects/three-d/ThreeDExtensions.ts:20

Color as CSS color string. Default: '#ffffff'


height?​

optional height: number

Defined in: src/mobjects/three-d/ThreeDExtensions.ts:16

Height of the prism. Default: 2


opacity?​

optional opacity: number

Defined in: src/mobjects/three-d/ThreeDExtensions.ts:22

Opacity from 0 to 1. Default: 1


radius?​

optional radius: number

Defined in: src/mobjects/three-d/ThreeDExtensions.ts:14

Radius of the circumscribed circle of the base polygon. Default: 1


sides?​

optional sides: number

Defined in: src/mobjects/three-d/ThreeDExtensions.ts:12

Number of sides for the base polygon. Default: 6 (hexagonal)


wireframe?​

optional wireframe: boolean

Defined in: src/mobjects/three-d/ThreeDExtensions.ts:24

Whether to render as wireframe. Default: false