IntersectionRayShoot Method |
Rhino 5 for Windows
Computes point intersections that occur when shooting a ray to a collection of surfaces.
Namespace: Rhino.Geometry.IntersectAssembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.30000.17 (5.13.60913.21340)
Syntaxpublic static Point3d[] RayShoot(
Ray3d ray,
IEnumerable<GeometryBase> geometry,
int maxReflections
)
Public Shared Function RayShoot (
ray As Ray3d,
geometry As IEnumerable(Of GeometryBase),
maxReflections As Integer
) As Point3d()
Parameters
- ray
- Type: Rhino.GeometryRay3d
A ray used in intersection. - geometry
- Type: System.Collections.GenericIEnumerableGeometryBase
Only Surface and Brep objects are currently supported. Trims are ignored on Breps. - maxReflections
- Type: SystemInt32
The maximum number of reflections. This value should be any value between 1 and 1000, inclusive.
Return Value
Type:
Point3dAn array of points: one for each face that was passed by the faceIds out reference.
Exceptions
See Also