Get intersect point between mesh with Ray (c++)

Hi;
In Rhinocommon I can use this funtion : Intersection.MeshRay Method (Mesh, Ray3d,Int32), find the faces which intersect with the Ray, but I search the Rhino c++ sdk along time, I was not found the funtion like it, how cant I solve it?

Hi @suc_kiet,

Use the ON_RayShooter class. See opennurbs_plus.h for it’s declaration.

– Dale

Hi@dale;
I have see it, in ON_RayShooter class, just have the funtion abaut surface.

So I must change the mesh to surface first?

Hi @suc_kiet,

Let me know if this sample code helps.

– Dale

1 Like