pyvista.set_vtkwriter_mode

pyvista.set_vtkwriter_mode#

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

Set any vtk writer to write as binary or ascii.

Parameters:
vtk_writervtkDataWriter | vtkPLYWriter | vtkSTLWriter | _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 | _vtk.vtkXMLWriter

The configured vtk writer instance.