Update clipper to 6.2.0 and port the code