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

BoundBox.is_inside not working correctly #827

Open
jdegenstein opened this issue Dec 19, 2024 · 0 comments
Open

BoundBox.is_inside not working correctly #827

jdegenstein opened this issue Dec 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jdegenstein
Copy link
Collaborator

bb = Compound([Vertex(1,1,1),Vertex(2,2,2)]).bounding_box()
bb2 = Compound([Vertex(0,0,0),Vertex(-1,-1,-1)]).bounding_box()
print(bb)
print(bb2)
print(bb.is_inside(bb2))

Returns:

bbox: 1.0 <= x <= 2.0, 1.0 <= y <= 2.0, 1.0 <= z <= 2.0
bbox: -1.0 <= x <= 0.0, -1.0 <= y <= 0.0, -1.0 <= z <= 0.0
True

Also, it looks like the False result was never tested in test_direct_api.py

@jdegenstein jdegenstein added this to the Not Gating Release 1.0.0 milestone Dec 19, 2024
@jdegenstein jdegenstein added the bug Something isn't working label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant