pyvista.set_vtkwriter_mode

pyvista.set_vtkwriter_mode#

set_vtkwriter_mode(vtk_writer, use_binary=True)[source]#

Set any vtk writer to write as binary or ascii.

Parameters:
vtk_writervtkDataWriter, vtkPLYWriter, vtkSTLWriter, or _vtk.vtkXMLWriter

The vtk writer instance to be configured.

use_binarybool, default: True

If True, the writer is set to write files in binary format. If False, the writer is set to write files in ASCII format.

Returns:
vtkDataWriter, vtkPLYWriter, vtkSTLWriter, or _vtk.vtkXMLWriter

The configured vtk writer instance.