If you still have the piece, do not lose it,
If it is steel, a good welder can fix and a re-paint is possible although difficult...
If it is fibreglass, many people can fix although strength could be a problem... and then it can be painted.
If it is Carbon (very doubtful - 1%) it can also be fixed similar to Fibreglass and painted.
Anyhow, don't stress it can be done, but I am afraid for it to look right a whole roof might need to be painted, and a good repair person may be needed.
Glass is the easiest to get right and a bit quicker.