That’s why I love this forum.
I saw another post that mentioned an issue with shading mask on Rhino 7, went to fix it, found a problem in the “rc.Geometry.Intersect.Intersection.MeshRay”, googled it to see if it is a Rhino 7 generic issue and was prompted to this page where @eirannejad had already fixed it.
@chris , sorry for the messy code