- DataObject.save(filename: str, binary=True, texture=None)#
Save this vtk object to file.
Filename of output file. Writer type is inferred from the extension of the filename.
True, write as binary. Otherwise, write as ASCII.
Write a single texture array to file when using a PLY file. Texture array must be a 3 or 4 component array with the datatype
np.uint8. Array may be a cell array or a point array, and may also be a string if the array already exists in the PolyData.
If a string is provided, the texture array will be saved to disk as that name. If an array is provided, the texture array will be saved as
This feature is only available when saving PLY files.
Binary files write much faster than ASCII and have a smaller file size.