# tfg.io.triangle_mesh.load

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/io/triangle_mesh.py#L41-L78) |

Loads a triangle mesh from the given GFile/file path.

    tfg.io.triangle_mesh.load(
        file_obj, file_type=None, **kwargs
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `file_obj` | A tf.io.gfile.GFile object or a string specifying the mesh file path. |
| `file_type` | A string specifying the type of the file (e.g. 'obj', 'stl'). If not specified the file_type will be inferred from the file name. |
| `**kwargs` | Additional arguments that should be passed to trimesh.load(). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A trimesh.Trimesh or trimesh.Scene. ||

<br />