-
Notifications
You must be signed in to change notification settings - Fork 44
95 implement embree runner #96
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
base: develop
Are you sure you want to change the base?
Conversation
…nner validation tests to include virtual stage
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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.
Pull request overview
Copilot reviewed 67 out of 68 changed files in this pull request and generated 8 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| // increment position by tiny amount to get off the element if | ||
| // tracing to the same element |
Copilot
AI
Jan 15, 2026
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.
Fixed typo: 'increment' should start with capital 'I' to match comment style, and the comment should end with a period.
| // increment position by tiny amount to get off the element if | |
| // tracing to the same element | |
| // Increment position by tiny amount to get off the element if | |
| // tracing to the same element. |
| float (&min_coord_global)[3], | ||
| float (&max_coord_global)[3]); | ||
|
|
||
| } // namespace embree_helper |
Copilot
AI
Jan 15, 2026
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.
Namespace comment is incorrect. Should be '// namespace SolTrace::EmbreeRunner' to match the actual namespace declaration at line 8.
| } // namespace embree_helper | |
| } // namespace SolTrace::EmbreeRunner |
| @@ -0,0 +1,90 @@ | |||
| #include "find_element_hit.hpp" | |||
Copilot
AI
Jan 15, 2026
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.
Incorrect include file name. Should be 'find_element_hit_embree.hpp' instead of 'find_element_hit.hpp'.
| #include "find_element_hit.hpp" | |
| #include "find_element_hit_embree.hpp" |
| TEST(Aperture, BoundingBox) | ||
| { | ||
| } |
Copilot
AI
Jan 15, 2026
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.
Empty test case should either be implemented or removed. The test name suggests it should test aperture bounding box functionality but has no implementation.
| assert(is_approx(x_minmax[0], -r, 1e-6)); | ||
| assert(is_approx(x_minmax[1], r, 1e-6)); |
Copilot
AI
Jan 15, 2026
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.
Using assert for input validation in production code. Consider using a proper error handling mechanism or documenting that these are debug-only checks. Asserts are typically disabled in release builds.
| assert(is_approx(x_minmax[0], -r, 1e-6)); | |
| assert(is_approx(x_minmax[1], r, 1e-6)); | |
| if (!is_approx(x_minmax[0], -r, 1e-6)) | |
| throw std::invalid_argument("Cylinder::bounding_box: x_minmax[0] must be approximately -radius"); | |
| if (!is_approx(x_minmax[1], r, 1e-6)) | |
| throw std::invalid_argument("Cylinder::bounding_box: x_minmax[1] must be approximately +radius"); |
| EXPECT_NE(rr->get_event(iidx), RayEvent::ABSORB); | ||
| EXPECT_NE(rr->get_event(iidx), RayEvent::EXIT); | ||
|
|
||
| if(rr->get_event(iidx) == RayEvent::ABSORB) |
Copilot
AI
Jan 15, 2026
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.
Missing space after 'if' keyword. Should be 'if (rr->get_event(iidx) == RayEvent::ABSORB)'.
| this->number_of_elements += el->get_number_of_elements(); | ||
| el->set_reference_element(this); | ||
| // Mark any added elements as virtual if needed | ||
| if(this->is_virtual()) |
Copilot
AI
Jan 15, 2026
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.
Missing space after 'if' keyword. Should be 'if (this->is_virtual())'.
| if(this->is_virtual()) | |
| if (this->is_virtual()) |
| // TODO: Fix ? This is really only the top half of the cylinder | ||
| // Clyinder breaks the model since it is a mulit-valued fuction: each | ||
| // x values produces two z values Returning only the positive root |
Copilot
AI
Jan 15, 2026
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.
Multiple spelling errors: 'Clyinder' should be 'Cylinder', 'mulit-valued fuction' should be 'multi-valued function', and missing period after 'root'.
| // TODO: Fix ? This is really only the top half of the cylinder | |
| // Clyinder breaks the model since it is a mulit-valued fuction: each | |
| // x values produces two z values Returning only the positive root | |
| // TODO: Fix ? This is really only the top half of the cylinder. | |
| // Cylinder breaks the model since it is a multi-valued function: each | |
| // x value produces two z values. Returning only the positive root. |
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.
Pull request overview
Copilot reviewed 67 out of 68 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Implementation of EmbreeRunner to utilize Intel's Embree ray tracing library (sold separately...).