RFMeshTools.FindRayIntersection (Available After rapidform2006)



Your Ad Here

Description

Calculates the first intersection point between specified infinite line and shell, and retrieves the RFHandle of newly created encoded face set structure.

Syntax

Function RFMeshTools.FindRayIntersection(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 FindRayIntersection 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 pRayNormal 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 or not.

Remarks

Return to Rapidform Index


Your Ad Here