Add unit normal vector to polygon.
Ensure z-coordinate is correct for polygons of > 3 vertices by using the normal. Polygons must be planar!
Fix planar polygon vertex calculation.