A simple algorithm for repairing any objects)

 

v20240901