pygfx.utils.load.load_mesh

pygfx.utils.load.load_mesh(path)

Load a mesh from a file.

Parameters:

path (str) – The location where the mesh is stored.

Returns:

mesh – A pygfx Mesh object. If the file does not contain exactly one mesh, an error is raised.

Return type:

Mesh

Examples

Show STL File via gfx.show

Show STL File via gfx.show