Trying to get point of intersection between a line and a mesh

Hello, I hope all is well.
I’ve been trying to find a point of intersection between a line passing through a mesh, on the surface of the mesh.
Have tried Mesh-intersect on V7 and still didn’t work.

Anyone has a clue? I’d really appreciate it.

Would be easy in Grasshopper…

Hello Martin,
I do not use grasshopper, is there a way in rhino ? personally what I’m doing is meshing the line a little bit and then performing the intersection then deleting the un necessary parts. But I was wondering if there’s a quicker way

Hi Sam - here is a script that may help- (2.0 KB)
@sam25 - updated to optionally intersect an infinite line.
To use the Python script use RunPythonScript, or a macro:

_-RunPythonScript "Full path to py file inside double-quotes"



Works perfectly, Thanks Pascal!