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

Update triangle example to API v2 #936

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

aprokop
Copy link
Contributor

@aprokop aprokop commented Aug 24, 2023

Creating so that I won't forget. Depends on #915 and #944.

@aprokop aprokop added the examples Anything to do with examples label Aug 24, 2023
@aprokop aprokop force-pushed the apiv2_triangle_intersection_example branch from b7fec02 to 6a7253e Compare October 26, 2023 20:58
@aprokop aprokop force-pushed the apiv2_triangle_intersection_example branch from 6a7253e to b79de0f Compare December 23, 2023 16:18
@aprokop aprokop marked this pull request as ready for review December 23, 2023 16:18
@aprokop
Copy link
Contributor Author

aprokop commented Dec 23, 2023

The example is still probably too complex. Would probably want to do a smaller one with just a few triangles and few points and no callback. It really depends on what we want.

@aprokop
Copy link
Contributor Author

aprokop commented Apr 9, 2024

The example is still probably too complex. Would probably want to do a smaller one with just a few triangles and few points and no callback. It really depends on what we want.

Did just this. 8 triangles, 9 points. Not very different from the simple intersection example, just slightly more complicated. I think it's fine.

If desired, we could convert the previous example into a benchmark.

@aprokop aprokop force-pushed the apiv2_triangle_intersection_example branch from 5bb9bcd to 5519ff5 Compare April 9, 2024 01:56
@aprokop aprokop added this to the Tentative 1.6 Release milestone Apr 9, 2024
Comment on lines +69 to +75
// _____________
// |\ x |\ x|
// | \ | \ |
// |____\|____\|
// |\ |\ |
// | \ x|x \ |
// _____\|____\|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You didn't want to number them?

Copy link
Contributor Author

@aprokop aprokop Apr 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried it, but found that it was hard to distinguish from triangle numbering. It seemed like it you need both x and number for clarity. So, I decided to drop the numbers.

@aprokop aprokop mentioned this pull request Apr 9, 2024
@aprokop
Copy link
Contributor Author

aprokop commented Apr 9, 2024

Note that this PR should also fix the intermittent failures of the triangle intersection test on SYCL.

@aprokop aprokop merged commit dff44db into arborx:master Apr 9, 2024
2 checks passed
@aprokop aprokop deleted the apiv2_triangle_intersection_example branch April 9, 2024 20:32
@aprokop aprokop mentioned this pull request Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Anything to do with examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants