fedoo.Mesh.nearest_node

Mesh.nearest_node(X: ndarray[float]) int

Return the index of the nearst node from the given position X

Parameters:

X (1D np.ndarray) – Coordinates of a point. len(X) should be 3 in 3D or 2 in 3D.

Return type:

The index of the nearest node to X