Nodo Muestrear más cercano

El nodo Muestrear más cercano.

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 Nodo Proximidad a geometría, but it outputs the index of the closest element instead of its distance from the current location.

Truco

If you want to find nearest to each point in same geometry, its better to use the Nodo Identificador del más cercano node.

Entradas

Geometría

The geometry to sample.

Nota

This node only supports point cloud and mesh inputs.

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 Nodo Posición was connected.

Propiedades

Dominio

The attribute domain to consider the distance from.

Salidas

Identificador

The index of the closest geometry element of the chosen domain.

Ejemplos

../../../../_images/modeling_geometry-nodes_sample_nearest-example.png

Combining this node with the Nodo Muestrear identificador 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.