-
Notifications
You must be signed in to change notification settings - Fork 28
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
Implemented voxel-mesh intersection #102
base: main
Are you sure you want to change the base?
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
Thanks for the contribution. Can you please modify the "description" part on the top of this PR and explain what the issue was and what you did to fix it? |
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! thank you.
Thanks Nigel. A couple of things:
Thanks. |
Ok, please take a look at the changes. |
Thanks Nigel. Can you squash the two commits with "Implemented voxel-mesh interaction"? |
You can do this yourself with a Squash merge: |
I can. But it can lead to bad commit messages. If you couldn't do it I'll squash and merge. A few more comments:
|
When making changes you can simply do git commit --amend (and them git push -f ....) so you don't have to create a new commit for the changes. |
cccdd25
to
cd711d2
Compare
Contributing Guidelines
Description
The mesh_boundary_masker previously used warp aabb intersection testing to determine when voxels intersect with the mesh. This just found the voxels that intersected with the triangle bounding boxes and not the triangles themselves. I added warp functions to do the triangle intersection testing after the aabb test was passed, so only those voxels that actually intersect the triangles are made solid.
Type of change
How Has This Been Tested?
All tests passing except JAX macroscopic (will be fixed in other PR)
Linting and Code Formatting
Make sure the code follows the project's linting and formatting standards. This project uses Ruff for linting.
To run Ruff, execute the following command from the root of the repository:
ruff check .
Old:
New:
Timing for SAE_Coarse stl file and the cached code:
New mesh masker completed in 0.004960 seconds.
Old mesh masker completed in 0.004057 seconds.
For DrivAer-Notchback.stl:
New method: 0.45 sec
Old method : 0.457865 seconds
Older method (wp.mesh_query_point_no_sign): 0.457386