Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create_multiple_convex_collisions() is ignoring MeshConvexDecompositionSettings. #91578

Closed
eddieataberk opened this issue May 5, 2024 · 4 comments

Comments

@eddieataberk
Copy link

Tested versions

Reproducible in 4.2 and 4.3 dev

System information

Windows 10

Issue description

create_multiple_convex_collisions always generating a single collision there are no differences when we use the MeshConvexDecompositionSettings either

var decomposition_settings :=  MeshConvexDecompositionSettings.new()
decomposition_settings.max_convex_hulls = 16
mesh.create_multiple_convex_collisions(decomposition_settings)

and

mesh.create_multiple_convex_collisions()

producing the same result.

Steps to reproduce

var decomposition_settings := MeshConvexDecompositionSettings.new()
decomposition_settings.max_convex_hulls = 16
mesh.create_multiple_convex_collisions(decomposition_settings)

Minimal reproduction project (MRP)

N/A

@rburing
Copy link
Member

rburing commented May 5, 2024

What is the input mesh? And what is the problem? The method does a decomposition of the mesh into convex shapes, so if the input mesh is convex then the result will be one convex shape...

@eddieataberk
Copy link
Author

What is the input mesh? And what is the problem? The method does a decomposition of the mesh into convex shapes, so if the input mesh is convex then the result will be one convex shape...

its the same for all the meshes i tried. calling it from Mesh dropdown menu
image

vs. calling it from code
image

@eddieataberk
Copy link
Author

nvm solved the issue it seems decomposition_settings.max_concavity = 0 solves the issue. which is set to 1 by default

@Sauermann
Copy link
Contributor

Closing according to the previous post.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants