working on 3D polygons