Geometry Images: Cutting Algorithm Walkthrough + Rendering Walkthrough Using A Normal Map With Optional Culling
Original code you can find here
I try to rewrite it for modern C++ (C++17), but not finished (see modern-c++ branch)
You can find more stable version of this project in the OpenGI project.