Text3D

Text3D(string, depth=0.5)

Create 3D text from a string.

Parameters
stringstr

String to generate 3D text from.

depthfloat, optional

Depth of the text. Defaults to 0.5.

Returns
pyvista.PolyData

3D text mesh.

Examples

>>> import pyvista
>>> text_mesh = pyvista.Text3D('PyVista')
>>> text_mesh.plot(cpos='xy')
../../../_images/pyvista-Text3D-1_00_00.png