This is currently only intended to work with triangular faces.

save_rgl_mesh_zip(mesh, mesh_name, zip_file)

Arguments

mesh

The mesh object to store.

mesh_name

A character object specifying the mesh name, which will be used for file names.

zip_file

The zip file to use as output.

Details

This converts the vertex positions (vb) and face indexes (it) to vectors and stores them compactly as zipped binary files.

The first value in each file is a 32-bit integer specifying the number of vertexes or positions.

No material information is retained.

Note that new data will be appended to an existing .zip file. This allows many meshes to be stored together.