This is a generator that produces a spline.
The generator simulates single photon trajectory along the Z axis of from the center of the generator and any possible refractions when traveling through a translucent material.
The Ray can have any wavelength (internally computed in nanometers) from 0.1 to 10^6.
In order to see refractions the user needs to create an IOR User Data attribute with integer or float values in Real Unit type for each object the Ray should pass through.
Collider or Collider Body Tags on the object are taken into account to block the ray traveling through them.
The Wavelength of the ray can be defined by either from the generator's Custom Display Color from the Hue slider or by an integer value.
The Ray Length defines the total distance the Ray will travel.
The Collision Threshold is an accuracy factor and also defines how dense in points the spline is.
Total Reflection if enabled will enable the ray to travel parallel on the surface if it hits the surface from a Critical Angle.
Show Collisions will create Null objects on collision points.

Note
See the Demo scene in the folder for better understanding on how to use the generator.
The generator doesn't take into account any IOR values from material tags or materials themselves.
The simulator is slow, keep your ray-interacting objects low resolution or create low-resolution proxies.
If a geometry doesn't interact with the ray (a Bool for example) put it under a Connect and use that in the generator's object list.
Do you want to contribute to the development of this plugin? If yes, contact me.