Interface: PrismOptions
Defined in: mobjects/three-d/ThreeDExtensions.ts:8
Options for creating a Prism
Properties
center?
optionalcenter:Vector3Tuple
Defined in: mobjects/three-d/ThreeDExtensions.ts:16
Center position [x, y, z]. Default: [0, 0, 0]
color?
optionalcolor:string
Defined in: mobjects/three-d/ThreeDExtensions.ts:18
Color as CSS color string. Default: '#ffffff'
height?
optionalheight:number
Defined in: mobjects/three-d/ThreeDExtensions.ts:14
Height of the prism. Default: 2
opacity?
optionalopacity:number
Defined in: mobjects/three-d/ThreeDExtensions.ts:20
Opacity from 0 to 1. Default: 1
radius?
optionalradius:number
Defined in: mobjects/three-d/ThreeDExtensions.ts:12
Radius of the circumscribed circle of the base polygon. Default: 1
sides?
optionalsides:number
Defined in: mobjects/three-d/ThreeDExtensions.ts:10
Number of sides for the base polygon. Default: 6 (hexagonal)
wireframe?
optionalwireframe:boolean
Defined in: mobjects/three-d/ThreeDExtensions.ts:22
Whether to render as wireframe. Default: false