Unroll Unbend a pipe keeping cuttings and normals

Hello evryone!

Does anyone knows how to un bent a pipe, straighten keeping the same length and if it has cuttings on it keep the position of the once being straight

Like similar in a way of unroll surfaces, but in this case “unrolling” a profile a pipe profile with cuttings on it!

Any lead on this would be great, it will so much appreciated

Many thanks!