CompactRay.assign
- raytracing.compact.CompactRay.assign(self, ray)
Copy all fields from a regular
Rayinto this buffer position.This is the bridge between the object-oriented world (a
Raywith 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.