Intersects a given set of rays with a specified set of bodies.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As IModelDoc2
Dim BodiesIn As Body2
Dim NumBodies As Integer
Dim BasePointsIn As Double
Dim VectorsIn As Double
Dim NumRays As Integer
Dim Options As Integer
Dim HitRadius As Double
Dim Offset As Double
Dim value As Integer
value = instance.IRayIntersections(BodiesIn, NumBodies, BasePointsIn, VectorsIn, NumRays, Options, HitRadius, Offset)
|
Parameters
- BodiesIn
Array bodies that are hit by the rays (see Remarks)
- NumBodies
Number of bodies in the BodiesIn array
- BasePointsIn
Array containing the x,y,z base points of each ray
- VectorsIn
Array containing the direction vectors of each ray
- NumRays
Number of rays specified; this should be equal to the number of elements in the (basePointsIn / 3) or (vectorsIn / 3) arrays
- Options
Number of options as defined in swRayPtsOpts_e
- HitRadius
Radius of hit cylinder used mainly in grazing cases to establish a hit
- Offset
Length tolerance to use to establish whether a hit on a face represents the entry or exit of the ray from the body (see Remarks)
Return Value
Number of intersections found
Remarks
See Also
Availability
SolidWorks 2001Plus FCS, Revision Number 10.0