trimesh.resources

Functions:

get(name[, decode, decode_json])

Get a resource from the trimesh/resources folder.

trimesh.resources.get(name, decode=True, decode_json=False)

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

  • decode_json (bool) – Run json.loads on resource if True.

Returns

resource – File data

Return type

str, bytes, or decoded JSON