Text3D Class

Extends Mesh
Module: Meshes

Special mesh type used to draw 3D text.

It receives a Font resource that is used to triangulate and extrude font data into a 3D mesh.

Methods

clone

() Text3D

Clone this Text3D instance.

Returns:

Text3D:

Clone of this object

setFont

(
  • font
)

Set font used by this text 3D instance.

Parameters:

setText

(
  • text
)

Change text.

Parameters:

  • text String

toJSON

(
  • meta
)
Object

Create JSON for object.

Need to backup geometry and set to undefined to avoid it being stored.

Parameters:

  • meta Object

Returns:

Object:

json

updateGeometry

()

Update text geometry.

Should be called after chaging any attribute.

Properties

bevel

Boolean

If true a bevel is added to the text.

bevelSize

Number

Bevel size.

bevelThickness

Number

Bevel thickness.

curveSegments

Number

Number of segments that compose a curve in the font.

font

Font

Font used to draw text.

height

Number

Height of the text.

size

Number

Size of the text (depth).

text

String

Text.