docstr: Load the cow as converted to a single mesh in a glb file.
docstr_tok: ["Load","the","cow","as","converted","to","a","single","mesh","in","a","glb","file","."]
code: def test_load_cow_no_texture(self):
      """
      Load the cow as converted to a single mesh in a glb file.
      """
      glb = DATA_DIR / "cow.glb"
      self.assertTrue(glb.is_file())
      device = torch.device("cuda:0")
      mesh = _load(glb, device=device, include_textures=False)
      self.assertEqual(len(mesh), 1)
      self.assertIsNone(mesh.textures)
  
      self.assertEqual(mesh.faces_packed().shape, (5856, 3))
      self.assertEqual(mesh.verts_packed().shape, (3225, 3))
      mesh_obj = _load(TUTORIAL_DATA_DIR / "cow_mesh/cow.obj")
      self.assertClose(
          mesh.get_bounding_boxes().cpu(), mesh_obj.get_bounding_boxes()
      )
  
      mesh.textures = TexturesVertex(
          0.5 * torch.ones_like(mesh.verts_padded())
      )
  
      image = _render(mesh, "cow_gray")
  
      with Image.open(DATA_DIR / "glb_cow_gray.png") as f:
          expected = np.array(f)
  
      self.assertClose(image, expected)
  
imports: import os.path
  import unittest
  from math import radians
  import numpy
  import torch
  from PIL import Image
  from pytorch3d.io import IO
  from pytorch3d.io.experimental_gltf_io import _read_header, MeshGlbFormat
  from pytorch3d.renderer import AmbientLights, BlendParams, FoVPerspectiveCameras, look_at_view_transform, PointLights, RasterizationSettings, rotate_on_spot
  from pytorch3d.renderer.mesh import HardPhongShader, MeshRasterizer, MeshRenderer, TexturesVertex
  from pytorch3d.structures import Meshes
  from pytorch3d.transforms import axis_angle_to_matrix
  from pytorch3d.utils import ico_sphere
  from pytorch3d.vis.texture_vis import texturesuv_image_PIL
  from .common_testing import get_pytorch3d_dir, get_tests_dir, TestCaseMixin
label_desc: Use image node_id 5 for calling the TestMeshGltfIO obj's underlying member method code with example usage: obj.test_load_cow_no_texture() without return types