IntersectionMeshRay Method (Mesh, Ray3d, Int32)
Finds the first intersection of a ray with a mesh.
RhinoCommon (in RhinoCommon.dll)
public static double MeshRay(
out int meshFaceIndices
Public Shared Function MeshRay (
mesh As Mesh,
ray As Ray3d,
<OutAttribute> ByRef meshFaceIndices As Integer()
) As Double
- Type: Rhino.GeometryMesh
A mesh to intersect.
- Type: Rhino.GeometryRay3d
A ray to be casted.
- Type: SystemInt32
faces on mesh that ray intersects.
>= 0.0 parameter along ray if successful.
< 0.0 if no intersection found.
The ray may intersect more than one face in cases where the ray hits
the edge between two faces or the vertex corner shared by multiple faces,
or more than one face is coplanar or happens to be intersecting at the
same location as the ray.