The choice of particle shape representation is critical in the accuracy of the simulations of real granular materials. Here we present a method to simulate particle shape using polygonal particles. The method reproduces shear bands using different boundary conditions: confining walls, floppy boundaries and periodic boundary conditions.