Node reference
How to use Sample Nearest node in Oraphim
Use the Sample Nearest node in Oraphim. Learn its purpose, exact inputs, outputs, registered controls, example workflow, troubleshooting, and type ID geometry.sample_nearest.
Updated August 28, 2026How to use Sample Nearest node in Oraphim
Type ID: geometry.sample_nearest
Category: Utility
What this node does
Samples nearest data for downstream field or geometry operations.
The current Oraphim runtime registers 3 sockets and 2 properties for this node. Its main registered inputs are Geometry, Sample Position; its main outputs are Index. The tables below are generated from the runtime registry rather than a handwritten approximation.
Inputs
| Socket | Key | Type |
|---|---|---|
| Geometry | geometry |
Geometry3D |
| Sample Position | samplePosition |
Vector3 |
Outputs
| Socket | Key | Type |
|---|---|---|
| Index | index |
Int |
Controls
| Control | Key | Type | Group | Registry default |
|---|---|---|---|---|
| Sample Position | samplePosition |
Vector3 |
Inputs | 0.0 |
| Domain | domain |
String |
Node | POINT |
How to use it
- Add Sample Nearest from node search. Use
geometry.sample_nearestwhen you need the exact registry entry. - Connect a compatible
Geometry3Dsource to Geometry. Add the other inputs only when the operation needs them. - Start with the registry defaults and adjust Sample Position, Domain first so you can see the node's effect in isolation.
- Route Index (
Int) into a compatible downstream node, viewer, or output path. - Preview a representative frame, change one input/control at a time, and save/reopen reusable graphs to verify persistence.
Practical example
Create a small test graph with Sample Nearest. Feed a compatible source into Geometry. Change Sample Position away from its registry default and compare the result. Connect Index to a compatible downstream stage so the result is visible. Keeping this test graph small makes socket-type, context, and parameter mistakes easier to diagnose before the node is used in a production graph.
Troubleshooting
- If a connection is rejected, compare the exact socket data types in the tables above; Oraphim graph connections are typed.
- If the result looks unchanged, confirm this node is on the active path to the viewer/output and that the expected graph/resource is selected.
- If a control is unavailable, check required inputs and whether the property belongs to an internal or mode-dependent group.
- If a saved graph behaves differently later, reopen it and verify node identity, connections, and edited property values before rendering.
Related nodes
- Geometry Proximity —
geometry.proximity - Sample Curve —
geometry.curve_sample - Sample Nearest Surface —
geometry.sample_nearest_surface - Data Elements —
geometry.data_elements - Domain Size —
geometry.attribute_domain_size
Return to the complete Oraphim node reference.