Do you know a code which cuts figure like triangles etc. into single parts?

Hello I would need a Code integrated which cuts certain figures, like triangles, quadrilaterals, pentagons, hexagons and display them at the bottom and the aim is that someone only sees the single parts and has to join these single parts together. Do you know such a code or has someone the ability to do such one?

Thank you in advance