trimesh.resources package

Module contents

trimesh.resources.get_resource(name, decode=True)

Get a resource from the trimesh/resources folder.

Parameters
  • name (str) – File path relative to trimesh/resources

  • decode (bool) – Whether or not to decode result as UTF-8

Returns

resource – File data

Return type

str or bytes