kaolin.io.gltf

API

kaolin.io.gltf.import_mesh(path, scene=None)

Import mesh from a gltf (.glb or .gltf) file.

Parameters
  • path (str) – path to the gltf file.

  • scene (int, optional) – scene index, used to load animation specific frame. Default: default gltf scene (most of time frame 0).

Returns

The imported mesh.

Return type

(kaolin.rep.SurfaceMesh)

kaolin.io.gltf.import_meshes(path)

Import meshes from a gltf (.glb or .gltf) file without them being composed in a scene.

Parameters

path (str) – path to the gltf file.

Returns

The imported meshes.

Return type

(list of kaolin.rep.SurfaceMesh)