Intersects a given set of rays with a specified set of bodies.
.NET Syntax
Visual Basic (Usage) | |
---|
Dim instance As IModelDoc2
Dim BodiesIn As Object
Dim BasePointsIn As Object
Dim VectorsIn As Object
Dim Options As Integer
Dim HitRadius As Double
Dim Offset As Double
Dim value As Integer
value = instance.RayIntersections(BodiesIn, BasePointsIn, VectorsIn, Options, HitRadius, Offset)
|
Parameters
- BodiesIn
Array of bodies that are hit by the rays (see Remarks)
- BasePointsIn
Array of doubles containing the x,y,z base points of each ray
- VectorsIn
Array of doubles containing the direction vectors of each ray
- Options
Number of options as defined in swRayPtsOpts_e
- HitRadius
Radius of hit cylinder; this is 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