trimesh.interfaces.vhacd

Classes:

MeshScript(meshes, script[, exchange, debug])

Functions:

convex_decomposition(mesh[, debug])

Run VHACD to generate an approximate convex decomposition of a single mesh.

find_executable(executable[, path])

Tries to find ‘executable’ in the directories listed in ‘path’.

trimesh.interfaces.vhacd.convex_decomposition(mesh, debug=False, **kwargs)

Run VHACD to generate an approximate convex decomposition of a single mesh.

Parameters

mesh (trimesh.Trimesh) – Mesh to be decomposed into convex components

Returns

meshes – List of convex meshes

Return type

(n,) trimesh.Trimesh