trimesh.resources

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

trimesh.resources.get_schema(name)

Load a schema and evaluate the referenced files.

Parameters

name (str) – Filename of schema.

Returns

schema – Loaded and resolved schema.

Return type

dict