Hi @axa,
unfortunately that is how it has always been and applies to vbscript, python and rhino common. The helpfile mentions:
Only Surface and Brep objects are currently supported. Trims are ignored on Breps.
Your script looks like you’re only interested in the first reflection point ? Why not intersect with a line or project the points and try to keep the closest one ? Below is an example script using projection and scene based on yours. Note that a projection can hit an object multiple times and goes in two directions…
ShootOneRayCustom.py (1.8 KB)
shoot_rays.3dm (90.7 KB)
c.