RhinoCommon API
IntersectionMeshRay Method (Mesh, Ray3d) |
Finds the first intersection of a ray with a mesh.
Namespace: Rhino.Geometry.Intersect
Assembly: RhinoCommon (in RhinoCommon.dll)

public static double MeshRay( Mesh mesh, Ray3d ray )
Public Shared Function MeshRay ( mesh As Mesh, ray As Ray3d ) As Double
Parameters
- mesh
- Type: Rhino.GeometryMesh
A mesh to intersect. - ray
- Type: Rhino.GeometryRay3d
A ray to be casted.
Return Value
Type: Double>= 0.0 parameter along ray if successful. < 0.0 if no intersection found.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.8