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

Stub out a callback handler #24

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

matthewturk
Copy link
Contributor

This is a work-in-progress pull request to add callbacks. Examples are forthcoming, but the basic principle is that client code can cimport the RayCollisionCallback object and subclass it, then provide this to the run() method in the EmbreeScene.

This callback can, for instance, adjust the direction of the rays, or make changes to an external array held onto by the RayCollisionCallback object.

@matthewturk matthewturk changed the title [WIP] Stub out a callback handler Stub out a callback handler Jul 7, 2020
@matthewturk
Copy link
Contributor Author

This should be ready for review; I've stubbed out a python-based callback as well. The current CI failures seem related to conda base dependencies, I think.

@scopatz
Copy link
Owner

scopatz commented Jul 9, 2020

Thanks for putting this in Matt!

@@ -0,0 +1,49 @@
from rtcore_ray cimport RTCRay
Copy link
Owner

Choose a reason for hiding this comment

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

Please add docstrings to this file

@scopatz
Copy link
Owner

scopatz commented Jul 9, 2020

Also, please add some tests too

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

Successfully merging this pull request may close these issues.

3 participants