Skip to content

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