class_docstr: A ThreeJS based viewer class for viewing 3D meshes.
code: def __init__(self, source_mesh_data: Dict[str, Any]):
      context = threejs_visualization.build_context()
      self.context = context
      light1 = context.THREE.PointLight.new_object(0x808080)
      light1.position.set(10.0, 10.0, 10.0)
      light2 = context.THREE.AmbientLight.new_object(0x808080)
      lights = (light1, light2)
  
      camera = threejs_visualization.build_perspective_camera(
          field_of_view=30, position=(0.0, 0.0, 4.0)
      )
  
      mesh = self._mesh_from_data(source_mesh_data)
      geometries = threejs_visualization.triangular_mesh_renderer(
          [mesh], lights=lights, camera=camera, width=400, height=400
      )
  
      self.geometries = geometries
  
file_path: graphics/tensorflow_graphics/notebooks/mesh_viewer.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from typing import Any, Dict
  import numpy
  from tensorflow_graphics.notebooks import threejs_visualization
label_desc: Use image node_id 2 to create a new Viewer object from inherited base classes: object with example: obj = Viewer(source_mesh_data)