create the function kernelxx for polyprism