Skip to main content

Interface: PrismOptions

Defined in: mobjects/three-d/ThreeDExtensions.ts:8

Options for creating a Prism

Properties

center?

optional center: Vector3Tuple

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

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


color?

optional color: string

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

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


height?

optional height: number

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

Height of the prism. Default: 2


opacity?

optional opacity: number

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

Opacity from 0 to 1. Default: 1


radius?

optional radius: number

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

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


sides?

optional sides: number

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

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


wireframe?

optional wireframe: boolean

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

Whether to render as wireframe. Default: false