code: def scene_to_html(scene):
      
      # use os.path.join so this works on windows
      base = get_resource('viewer.html.template')
  
      # get export as bytes
      data = scene.export(file_type='glb')
      # encode as base64 string
      encoded = base64.b64encode(data).decode('utf-8')
  
      # replace keyword with our scene data
      result = base.replace('$B64GLTF', encoded)
  
      return result
docs: Return HTML that will render the scene using
      GLTF/GLB encoded to base64 loaded by three.js
  
      Parameters
      --------------
      scene : trimesh.Scene
        Source geometry
  
      Returns
      --------------
      html : str
        HTML containing embedded geometry