Dear Professor,

Thanks again for you gentle efforts. The feature of entering the polygon corners is very convenient and practical.

I guess that I met a bug in the simulation.

I made an internal "triangle cut" into the polygon and the ray is not reflecting at this point as it should. Please see the comparison between a triangle and the concave hexagon as attached.

Could this be solved?

With kind regards!