trimesh.exchange.off module

trimesh.exchange.off.export_off(mesh, digits=10) str

Export a mesh as an OFF file, a simple text format

Parameters:
  • mesh (trimesh.Trimesh) – Geometry to export

  • digits (int) – Number of digits to include on floats

Returns:

export – OFF format output

Return type:

str

trimesh.exchange.off.load_off(file_obj, **kwargs) dict

Load an OFF file into the kwargs for a Trimesh constructor.

Parameters:

file_obj (file object) – Contains an OFF file

Returns:

loaded – kwargs for Trimesh constructor

Return type:

dict