Skip to content

MeshShape mMaxTrianglesPerLeaf assert #1143

Closed Answered by jrouwe
DevLewa asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

First of all, this is not an error but a warning. The resulting mesh will work, but it will not be as efficient as it could be.

This code builds a tree structure to accelerate collision detection. At top level it will start with all triangles and then recursively divides the triangles into two batches. To do so it it uses an algorithm described here.

When this warning triggers, the algorithm was not able to create a reasonable split for the triangles. This usually happens when the triangles in a batch are intersecting. Alternatively, they could be overlapping when projected on the 3 coordinate axis.

Your error triggers when there are only 10 triangles left, so the performance loss …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by DevLewa
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1127 on June 14, 2024 09:46.