Add avg_z to polygon.