Skip to content

Flat meshes lead to runtime error and crash #14

@rLaister

Description

@rLaister

The ComputeFloat Function in GenerateConvexMeshes crashes our application when a mesh that is very flat (0.1 mm) but still has a good amount of triangles (e.g. > 7000 vertices, > 45000 triangles) with the following message:
image

To reproduce call GenerateConvexMeshes with a flat (0.1 mm z-height) mesh that has the described amount of triangles, then the Player Application crashes.

Expected behaviour is for the Application not to crash, and the ComputeFloat function to return an error message if it cannot compute the convex meshes.

  • Unity Version: 2021.3.9
  • Unity machine OS + version: Windows 10
  • libvhacd.dll has no version in properties. license copyright is 2011

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions