coords.Coords.adjust#
- Coords.adjust(**kargs)#
Find (almost) identical nodes and adjust them to be identical.
This is like the
fuse()operation, but it does not fuse the close neigbours to a single point. Instead it adjust the coordinates of the points to be identical.The parameters are the same as for the
fuse()method.Returns#
- Coords
A Coords with the same shape as the input, but where close points now have identical coordinates.
Examples#
>>> X = Coords([[1.,1.,0.],[1.001,1.,0.],[1.1,1.,0.]]) >>> print(X.adjust(atol=0.01)) [[1. 1. 0. ] [1. 1. 0. ] [1.1 1. 0. ]]