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 with concave meshes #269

Closed
cedricjeanty opened this issue Dec 9, 2018 · 2 comments
Closed

Bug with concave meshes #269

cedricjeanty opened this issue Dec 9, 2018 · 2 comments

Comments

@cedricjeanty
Copy link

I was building out a unit test for some code using trimesh, when I encountered some strange behavior. I am loading a unit cube with a notch taken out of the origin corner like so:

image

The file is:
Unit Cube w Notch.STL.zip

The origin is the bottom left "corner" which is missing. When I do mesh.contains([[0.1,0.1,0.1]]) I get True, which is not expected, as this point is in the "notched" part of the cube. I get similarly incorrect results for signed_distance.

Am I misunderstanding something, or is this a bug with concave meshes?
Thanks!

@cedricjeanty
Copy link
Author

My mistake, the coordinate system of the STL got changed during the save. This is not a bug.

@mikedh
Copy link
Owner

mikedh commented Dec 11, 2018

No worries, glad you figured it out! There is a rather unfortunate bug with contains tests and pyembree, but if you have well constructed meshes it shouldn't be a problem.

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

2 participants