create the function kernelxy for polyprism