Add possibility to display tris and quads

Use variable vertices and faces from previous commit