points_to_double

DataSet.points_to_double()

Convert the points datatype to double precision.

Examples

Create a mesh that has points of the type float32 and convert the points to float64.

>>> import pyvista
>>> mesh = pyvista.Sphere()
>>> mesh.points.dtype
dtype('float32')
>>> mesh.points_to_double()
>>> mesh.points.dtype
dtype('float64')