trimesh.exchange.off

Functions

export_off(mesh[, digits])

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

load_off(file_obj, **kwargs)

Load an OFF file into the kwargs for a Trimesh constructor

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

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)

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