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

Boolean intersection of a mesh with itself returns incorrect results when vertices are sufficiently large #2310

Open
laurence-kobold opened this issue Oct 28, 2024 · 3 comments

Comments

@laurence-kobold
Copy link

laurence-kobold commented Oct 28, 2024

The following code prints one, as expected:

box = trimesh.creation.box(extents=[1,1,1])
box.apply_translation([1e4,1e4,1e4])
print(trimesh.boolean.intersection([box, box]).volume)

The following code prints zero, when it should also print one:

box = trimesh.creation.box(extents=[1,1,1])
box.apply_translation([1e5,1e5,1e5])
print(trimesh.boolean.intersection([box, box]).volume)

I used the manifold engine for the intersection operations

@pca006132
Copy link

This is something manifold fixed upstream. We should wait until upstream publish a new release, hopefully soon.

@laurence-kobold
Copy link
Author

@pca006132 thanks, do you have a link to the issue or PR for manifold?

@pca006132
Copy link

@laurence-kobold elalish/manifold#895

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