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

BUG: ConvexPolyhedron world bounding box result can be undefined. #474

Open
chrisbmr opened this issue Mar 11, 2022 · 0 comments
Open

BUG: ConvexPolyhedron world bounding box result can be undefined. #474

chrisbmr opened this issue Mar 11, 2022 · 0 comments

Comments

@chrisbmr
Copy link

var minx,miny,minz,maxx,maxy,maxz;

If the vertices are processed in coordinate order, either the min or the max value for that coordinate will never be set because the else clause "if ... minx === undefined" etc. will never be hit.

This can happen randomly, force instance, with a tetrahedron lying on the ground due to rounding errors in the vertical coordinate.

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

No branches or pull requests

1 participant