run across some strangeness with max
-- run
delete objects;
pobj = convertToPoly(plane dir:[0,1,0]);
r = point pos:[0,50,2] dir:[0,-1,0] cross:off axistripod:on;
-- select the border edges of the plane and shift scale to add a ring of faces then run....
mobj = convertToMesh pobj;
intersectRay mobj (ray r.pos r.dir);
-- delete the new extruded Faces then run....
intersectRay mobj (ray r.pos r.dir);
do you get the results
undefined
OK
(ray [0,0,2] [0,1,0])
OK
?