Nodes ▸ Functions ▸ Structural
Nearest Element
Returns the dataset entry closest to a position, which can be picked in the viewport: the nearest point with its values, or the dataset pinned at it along chosen axes.
Inputs
| Port | Accepts | Required | Description |
|---|---|---|---|
x | dataset | required | The dataset to search |
Parameter ports
Added from the Parameters pane (⊕). While connected, each drives its parameter.
| Port | Accepts | Mode | Description |
|---|---|---|---|
positionPosition | primitive(array) dataset(stack) dataset(surface) | opt-in | position position; overrides the position parameter while connected |
Outputs
dataset(stack)dataset(grid)
Parameters
The Parameters pane shows only the parameters relevant to the current settings.
| Parameter | Kind | Default | Choices / range | Unit | Notes |
|---|---|---|---|---|---|
Outputoutput | choice | point | point | slice | ||
Pinpin | multichoice | none | r | theta | phi | line | vertex | ||
Positionposition | vector | none |