# Merge by Distance Node

The *Merge by Distance* node merges selected mesh vertices or point cloud points within a given distance,
merging surrounding geometry where necessary. This operation is similar to the Merge by Distance
operator or the Weld Modifier.

## Inputs

- Geometry
Standard geometry input.

- Selection
Boolean field that is true for parts of the geometry to be deleted. Unselected points will be completely unused for the operation– they will not be merged into other points, and no points will merge into them either.

Tips

When possible, using the selection input can be a simple way to speed up the node, since searching for nearby points is a relatively expensive operation that gets even more expensive when more points are involved.

- Distance
The distance to use for searching for nearby points.

## Properties

- Mode
Method for choosing which vertices are merged.

- All:
Merge includes all geometry including loose parts.

- Connected:
Merge only includes attached geometry i.e. the modifier will not merge loose parts together.

## Output

- Geometry
Standard geometry output.