CompactRay.assign

raytracing.compact.CompactRay.assign(self, ray)

Copy all fields from a regular Ray into this buffer position.

This is the bridge between the object-oriented world (a Ray with Python attributes) and the GPU-friendly world (a slot in a contiguous numpy buffer).

Parameters:

ray (Ray) – The source ray whose fields will be copied.