What is the meaning of Sugar-loaf?

A block of refined sugar, usually in the form of a truncated cone, in which form it was traditionally exported from the Caribbean and Brazil from the 17th century to the 19th century.

A hat shaped like a sugar-loaf.

Source: wiktionary.org