update cuboid to use x,y,z,w,d,h