kaolin.io.mesh

API

kaolin.io.mesh.import_mesh(filename, triangulate=False)

Automatically selects appropriate reader and reads mesh from file. Supported formats: USD, obj, gltf. Will read all present mesh attributes. For more fine-grained control over format-specific imports, refer to kaolin.io.usd.import_mesh, kaolin.io.obj.import_mesh and kaolin.io.gltf.import_mesh. # TODO: proper docs refs

Parameters
  • filename (str) – path to the filename

  • triangulate (bool) – if input should be triangulated on import

Returns

the read mesh object

Return type

(kaolin.rep.SurfaceMesh)