This is my first script in 25x, and i started writing scripts a week ago - so i am grateful for some feedback.
What does it ?
The script moves a selected part of the mesh to fit best into it’s surrounding. The edges from the selected to the unselected verts are serving as elastic bands.
The selected verts in the mesh must not be connected, you can use reference-verts in the mesh.
The Script shows up in the Mesh Tools.
The selected mesh can be rotated and translated free or with restriction, for example: only rotation around the z-axis.
(1) Sometimes you have to repeat the script several times for a final result
(2) The Script quits sometimes, if the calculation do not get a unique solution - i will work out something to make a regular end for this exception. If this happens, try out some restrictions, like switching off the scaling or rotation.