_PointSetBase.points_to_double

_PointSetBase.points_to_double#

_PointSetBase.points_to_double() Self[source]#

Convert the points datatype to double precision.

Returns:
pyvista.PointSet

Pointset with points in double precision.

Notes#

This operates in place.

Examples#

Download Python source code | Download Jupyter notebook

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

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