Description
Calculates the first intersection point between specified half-infinite line and shell, and retrieves the RFHandle of newly created encoded face set structure.
Syntax
Function RFMeshTools.FindRayIntersectionSingleDirection(hEncodedFaceSet As RFHandle, pRayPoint As RFPoint3, pRayNormal As RFVector3, frontFaceOnly As Boolean, pIntPoint As RFPoint3, pIntDistance As Double, pIntFaceID As RFEntityID, pSuccess As Boolean) As RFErrorCode
The FindRayIntersectionSingleDirection syntax has these parts:
| Part | Description |
|---|---|
| hEncodedFaceSet | [IN] RFHandle Required. Handle of the encoded face set structure. |
| 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