The stuckest of stuck rotors

Did a brake job and this rotor did not wanna come off. Tried the screw, didn’t work. Tried the sledge and you see the results of that. Ended up having to take the hub off (bolt on thank god) and use a punch and mallet on the backside to get the rotor off the hub.