composition and decomposition of a polygon