Skip to content
Discussion options

You must be logged in to vote

Hello @gd193,

If I understand your code example correctly, you should be able to dr.gather() from the underlying access_array.array, computing the index to gather based on counter.
I would recommend switching from tensors of size (n, 3) to mi.Point3f of width n, which will allow you to write operations much more naturally.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by gd193
Comment options

You must be logged in to vote
1 reply
@merlinND
Comment options

merlinND Jul 1, 2025
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants