Unity-Technologies / VHACD

The V-HACD library decomposes a 3D surface into a set of "near" convex parts.
Apache License 2.0
140 stars 24 forks source link

Unity Editor freezes when generating meshes #10

Open Daniel4144 opened 2 years ago

Daniel4144 commented 2 years ago

Describe the bug

Unity Editor freezes when generating convex meshes for the included mesh and consumes all available RAM

Mesh: cirPattern2.zip

To Reproduce

Steps to reproduce the behavior:

  1. Import the included mesh (check 'Read/Write Enabled' in the import settings)
  2. Call GenerateConvexMeshes() for the mesh
  3. Editor freezes and consumes all available RAM after some time

Environment:

Additional context This tool is really useful and works better than paid alternatives on the asset store. It is unfortunate that it is hidden in this repo and not mentioned anywhere (And it is also difficult to find under its not very meaningful name.

markus-senger commented 9 months ago

It still doesn't seem to be resolved; some meshes are causing the Unity Editor to freeze. The issue lies within the function ComputeFloat(...) within GenerateConvexMeshes(...). For example, the left disc leads to the freeze, while the right sphere (standard Unity sphere) works perfectly fine.

image