Are there currently any methods to save data (using ascii) as a legacy VTK with double precision (or to specify the number of sig figs) like you can with CSV for instance? I am trying to order some data sets so they match the order of the data in the VTK files and be pasted in (so I need the order of the connectivity preserved), but the coordinate data of very fine boundary layer meshes becomes indistinguishable due to the (presumably) single precision limit.
In the ASCII Legacy VTK file, you can set the dataType of the points to double as shown below to get double precision.
POINTS 514 double
Great news! Is there a place to set this so that when writing Legacy VTK from paraview it defaults to double?
There is no setting to set the dataType of the coordinates to double in the Legacy VTK file from ParaView. The dataType is automatically determined whether it is float or double by the precision of the output coordinate data. (To be precise, the dataType is set in vtkPoints class)
Even if you have data with double precision coordinates, it may not be easy to keep the precision of the coordinates double, because some filters in ParaView use single precision.