Reading and writing of data like images and meshes.
vispy.io.mesh.
read_mesh
Read mesh data from file.
File name to read. Format will be inferred from the filename. Currently only ‘.obj’ and ‘.obj.gz’ are supported.
Vertices.
Triangle face definitions.
Normals for the mesh.
Texture coordinates.
write_mesh
Write mesh data to file.
Filename to write. Must end with “.obj” or “.gz”.
Name of the object.
Currently only “obj” is supported.
If the file exists, overwrite it.
Reshape the faces array to (Nf, 3). Set to False if you need to write a mesh with non triangular faces.