Make BufferData function for planes