A codpiece (from Middle English cod 'scrotum') is a triangular piece that attached to the front of men's hose, covering the fly.
In the modern era, similar clothing pieces are worn in the leather subculture, and in performance costumes, such as for rock and metal musicians.
[1] However, the codpiece, per se, appeared in everyday European fashion for men only many centuries later, associated with hose and trousers.
Further shortening of the cote or doublet fashion resulted in more prominence of the genitals; this area would then be covered with a triangular material called a codpiece.
[7] Examples of metal parts of such armor are depicted by Wendelin Boeheim in his 1890 publication on the history of weapons, Handbuch der Waffenkunde, which was published in Leipzig, Germany.