write
- Mesh.write(filename, quiet=True, **data)[source]
Write mesh to file.
Data arrays, like vertex normals and texture coordinates, can be saved by passing them as keyword arguments.
- Parameters:
User defined data blocks can be written with
>>> mesh.write('output-file.obj', line_tag=data)
This assumes that
data
can be interpreted as a 2-dimensional array. The contents of each row are written to a line that starts with the given tag. If vertex normals are available, they can be stored via>>> mesh.write('outfile-file.obj', vn=normals)
Note
The standard OBJ tags ‘v’ and ‘f’ may not be used as keywords since they are implicitly used when writing mesh data to an OBJ file.