Grouping Figures into Prisms and Non-Prisms