project_point_to_surface
ProjectPointToSurface
__init__()
nearest_distance(input_coords, source_coords, max_distance=np.inf)
staticmethod
Find nearest points.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_coords |
ndarray[M, 3]
|
Surface points. |
required |
source_coords |
ndarray[N, 3]
|
Data points. |
required |
max_distance |
float
|
The maximum distance within which to search for nearest mesh points. Defaults to np.inf. |
inf
|
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
tuple[float, list]
|
Closest distance and index of the points. |
nearest_points(input_coords, source_coords, max_distance=np.inf)
staticmethod
Projects source_coords to input_coords by finding the nearest points within a maximum distance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_coords |
ndarray[M, 3]
|
Surface points. |
required |
source_coords |
ndarray[N, 3]
|
Data points. |
required |
max_distance |
float
|
The maximum distance within which to search for nearest mesh points. Defaults to np.inf. |
inf
|
Returns:
| Name | Type | Description |
|---|---|---|
tuple |
tuple
|
Point indices and index labels for each source_coords. |