RFMeshTools.SearchKDTree (Available After rapidform2006)



Your Ad Here

Description

Searches for N-nearest vertcies in the shell from the specified seed point, and retrieves a number of vertices which is actually searched .

Syntax

Function RFMeshTools.SearchKDTree(hTreeStruct As RFHandle, pInPoint As RFPoint3, searchVertexCount As Long, pOutVertices As RFEntityID, pOutDistances As Double, pOutVertexCount As Long) As RFErrorCode

The SearchKDTree syntax has these parts:

Part Description
hTreeStruct [IN] RFHandle Required. Handle of the KD tree structure.
pInPoint [IN] RFPoint3 Required. Point from which N-nearest vertices searching is started.
searchVertexCount [IN] Long Required. The number of vertices to search.
pOutVertices [OUT] RFEntityID Required. The first element of RFEntityID array to store N-nearest RFEntityID of vertices in an ascending order of the shortest distance order.
pOutDistances [OUT] Double Required. The first element of Double array to store corresponding distance information.
pOutVertexCount [OUT] Long Required. The number of actually searched vertices.

Remarks

Return to Rapidform Index


Your Ad Here