mymesh.tree.KDtreeNode.node_distance#

KDtreeNode.node_distance(x)[source]#

Calculate the nearest distance between a point and the location of the splitting plane of the current node.

Parameters:

x (np.ndarray) – Point coordinates (shape=(3,))

Returns:

dist – Distance between a point and the splitting plane.

Return type:

float