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