Skip to main content

Interface: Extrude3DOptions

Defined in: src/mobjects/three-d/Extrude3D.ts:41

Options for creating an Extrude3D.

Extends​

  • OrganicMeshOptions

Properties​

bend?​

optional bend: Extrude3DBend

Defined in: src/mobjects/three-d/Extrude3D.ts:63

Optional bend applied after the extrusion. Default: none (flat)


bevel?​

optional bevel: number

Defined in: src/mobjects/three-d/Extrude3D.ts:55

Radius of the round edge (0 = sharp edge). Clamped below depth / 2, and below the width at which it would fold the outline. Default: 0


bevelSegments?​

optional bevelSegments: number

Defined in: src/mobjects/three-d/Extrude3D.ts:57

Rings in each quarter-round bevel. Default: 4


capColor?​

optional capColor: string

Defined in: src/mobjects/three-d/Extrude3D.ts:65

Color of the two flat faces (top and bottom). Default: the main color


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


creaseAngle?​

optional creaseAngle: number

Defined in: src/mobjects/three-d/Extrude3D.ts:61

Outline corners sharper than this angle (radians) get a hard edge. Default: PI / 6


curveSegments?​

optional curveSegments: number

Defined in: src/mobjects/three-d/Extrude3D.ts:59

Samples per cubic Bezier curve of a VMobject outline. Default: 8


depth?​

optional depth: number

Defined in: src/mobjects/three-d/Extrude3D.ts:50

Slab thickness along Z (centred on z = 0). Default: 0.2


holes?​

optional holes: Outline2D[]

Defined in: src/mobjects/three-d/Extrude3D.ts:48

Holes inside the outline. A VMobject outline also contributes its other subpaths as holes. Default: none


opacity?​

optional opacity: number

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

Opacity from 0 to 1. Default: 1

Inherited from​

OrganicMeshOptions.opacity


outline​

outline: Outline2D

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

Outer outline in the XY plane. A VMobject uses its first subpath.