
    Mi                     0    S SK rSSKJrJr  S\\   4S jrg)    N   )DictListreturnc                 x   SSK Jn  [        R                  " [        R                  " [        U R                  5      [        R                  S9S-  U R                  45      R                  5       R                  [        R                  5      nU" U R                  U40 UD6 VVs/ s H	  u  pEXES.PM     snn$ s  snnf )a5  
Compute an approximate convex decomposition of a mesh.

VHACD Parameters which can be passed as kwargs:

Name                              Default
-----------------------------------------
maxConvexHulls                    64
resolution                        400000
minimumVolumePercentErrorAllowed  1.0
maxRecursionDepth                 10
shrinkWrap                        True
fillMode                          "flood"
maxNumVerticesPerCH               64
asyncACD                          True
minEdgeLength                     2
findBestPlane                     False

Parameters
----------
mesh : trimesh.Trimesh
  Mesh to be decomposed into convex parts
**kwargs : VHACD keyword arguments

Returns
-------
mesh_args : list
  List of **kwargs for Trimeshes that are nearly
  convex and approximate the original.
r   )compute_vhacd)dtype   )verticesfaces)vhacdxr   npcolumn_stackoneslenr   int64ravelastypeuint32r   )meshkwargsr   r   vfs         o/var/www/eduai.edurigo.com/storigo/production/storigo_env/lib/python3.13/site-packages/trimesh/decomposition.pyconvex_decompositionr      s    > % 	TZZAAEtzzRS					 
 "$--A&AADA #A  s   "B6)numpyr   typedr   r   r        r   <module>r       s     -DJ -r   