Cluster by Distance Node

Cluster by Distance node.

The Cluster by Distance node assigns cluster IDs to elements based on the proximity of their positions.

Elements within the specified distance of one another are assigned the same cluster ID. Separate Group ID values define independent sets of clusters.

For clustering based on mesh connectivity instead of spatial proximity, see the Cluster by Connected node.

Inputs

Selection

Boolean field indicating which elements participate in the clustering.

Unselected elements are ignored and do not contribute to any cluster.

Group ID

Integer field defining independent clustering groups.

Elements with different group IDs are clustered separately, even if they are within the specified distance.

Position

Position of each element used to measure distances.

Distance

Maximum distance between elements for them to belong to the same cluster.

Outputs

Cluster ID

Integer field identifying the cluster assigned to each selected element.

Elements with the same cluster ID belong to the same proximity-based cluster.