Skip to main content

Interface: PolyhedronOptions

Defined in: mobjects/three-d/Polyhedra.ts:7

Base options for all polyhedra

Properties

center?

optional center: Vector3Tuple

Defined in: mobjects/three-d/Polyhedra.ts:11

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


color?

optional color: string

Defined in: mobjects/three-d/Polyhedra.ts:13

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


detail?

optional detail: number

Defined in: mobjects/three-d/Polyhedra.ts:19

Level of detail (subdivision level). Default: 0


opacity?

optional opacity: number

Defined in: mobjects/three-d/Polyhedra.ts:15

Opacity from 0 to 1. Default: 1


sideLength?

optional sideLength: number

Defined in: mobjects/three-d/Polyhedra.ts:9

Side length of the polyhedron. Default: 1


wireframe?

optional wireframe: boolean

Defined in: mobjects/three-d/Polyhedra.ts:17

Whether to render as wireframe. Default: false