pygfx.geometries.geometry_from_trimesh

pygfx.geometries.geometry_from_trimesh(mesh)

Convert a Trimesh geometry object to pygfx geometry.

Creates a Geometry object from the given trimesh.Trimesh object.

Parameters:

mesh (Trimesh) – The mesh to be converted into a geometry.

Returns:

converted_mesh – A Geometry object representing the given mesh.

Return type:

Geometry

Examples

Boundary Boxes

Boundary Boxes

Environment Map Effects

Environment Map Effects