pyvista.Text3D#

Text3D(string, depth=0.5)[source]#

Create 3D text from a string.

Parameters:
stringstr

String to generate 3D text from.

depthfloat, default: 0.5

Depth of the text.

Returns:
pyvista.PolyData

3D text mesh.

Examples

>>> import pyvista
>>> text_mesh = pyvista.Text3D('PyVista')
>>> text_mesh.plot(cpos='xy')
https://d33wubrfki0l68.cloudfront.net/90a975eede979218e5566c5886eb81a6f5c513bc/a75f7/_images/pyvista-text3d-1_00_00.png