points_to_double#
- StructuredGrid.points_to_double()#
Convert the points datatype to double precision.
- Returns
pyvista.PointSet
Pointset with points in double precision.
Notes
This operates in place.
Examples
Create a mesh that has points of the type
float32
and convert the points tofloat64
.>>> import pyvista >>> mesh = pyvista.Sphere() >>> mesh.points.dtype dtype('float32') >>> _ = mesh.points_to_double() >>> mesh.points.dtype dtype('float64')