create the bx, by and bz functions for polyprism