merge_nodes
Remove duplicate or overlapping nodes in a bridge model by merging coordinates within a set tolerance. Specify node IDs or leave empty to check all nodes, with adjustable merge distance.
Instructions
Merge nodes that are at (nearly) the same coordinates (合并重合节点).
This is equivalent to the "Merge Nodes" operation in the GUI.
Useful after building a model to remove accidental duplicate nodes.
相当于界面上的"合并节点"功能,用于消除重叠节点。
Args:
ids: Node ID(s) to check. Supports int, list, or range string.
Leave empty to check ALL nodes.
(节点编号,留空则检查全部节点)
tolerance: Merge distance tolerance in model units, default 0.0001m
(合并容许误差,默认 0.0001m)
Example:
merge_nodes() # Merge all overlapping nodes in the model
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| tolerance | No |