How can I achieve a square top edge/corners on a sugar pasted cake?

Top