Description
Calculates the first intersection point between a specified half-infinite line and the shell, and retrieves a Boolean value indicating whether the intersection is successful.
Syntax
Function RFShell.FindRayIntersectionSingleDirection(pRayPoint As RFPoint3, pRayNormal As RFVector3, frontFaceOnly As Boolean, pIntPoint As RFPoint3, pIntDistance As Double, pIntFaceID As RFEntityID, pSuccess As Boolean) As RFErrorCode
The FindRayIntersection syntax has these parts:
| Part | Description |
|---|---|
| pRayPoint | [IN] RFPoint3 Required. Origin of the half-infinite line. |
| pRayNormal | [IN] RFVector3 Required. Direction of the half-infinite line. |
| frontFaceOnly | [IN] Boolean Required. It determines whether visible faces along the pRayNorma direction are only considered. |
| pIntPoint | [OUT] RFPoint3 Required. The first intersection point on the shell. |
| pIntDistance | [OUT] Double Required. Distance between pRayPoint and pIntPoint. |
| pIntFaceID | [OUT] RFEntityID Required. Face's RFEntityID on which pIntPoint lies. |
| pSuccess | [OUT] Boolean Required. Boolean value indicating whether an intersection point is found. |
Remarks