Nœud Sample Nearest

The Sample Nearest node retrieves the index of the geometry element in its input geometry that is closest to the input position. This node is similar to the Nœud Geometry Proximity, but it outputs the index of the closest element instead of its distance from the current location.
Entrées
- Geometry
La géométrie à échantillonner.
Note
Ce nœud ne prend en charge que les entrées de nuage de points et de maillage.
- Sample Position
The position to start from when finding the closest location on the target geometry. By default, this is the same as if the Nœud Position was connected.
Propriétés
- Domaine
Le domaine d’attribut à partir duquel prendre en compte la distance.
Sorties
- Index
The index of the closest geometry element of the chosen domain.
Exemples

Combining this node with the Nœud Sample Index gives a setup that can retrieve the closest attribute value from another geometry. This is the same behavior as the Transfer Attribute node in versions of Blender before 3.4.