Writing functions to convert JSON particles to mesh's