Intersects a given set of rays with a specified set of bodies.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function IRayIntersections( _
ByRef BodiesIn As Body2, _
ByVal NumBodies As System.Integer, _
ByRef BasePointsIn As System.Double, _
ByRef VectorsIn As System.Double, _
ByVal NumRays As System.Integer, _
ByVal Options As System.Integer, _
ByVal HitRadius As System.Double, _
ByVal Offset As System.Double _
) As System.Integer |
Visual Basic (Usage) | |
---|
Dim instance As IModelDoc2
Dim BodiesIn As Body2
Dim NumBodies As System.Integer
Dim BasePointsIn As System.Double
Dim VectorsIn As System.Double
Dim NumRays As System.Integer
Dim Options As System.Integer
Dim HitRadius As System.Double
Dim Offset As System.Double
Dim value As System.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