kaolin.io.gltf

API

kaolin.io.gltf.import_mesh(path)

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

Parameters

path (str) – path to the gltf file.

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)