code: def export(self, file_type=None):
          
  
          file_type = str(file_type).strip().lower()
          if file_type == 'gltf':
              return gltf.export_gltf(self)
          elif file_type == 'glb':
              return gltf.export_glb(self)
  
          export = {'graph': self.graph.to_edgelist(),
                    'geometry': {},
                    'scene_cache': {'bounds': self.bounds.tolist(),
                                    'extents': self.extents.tolist(),
                                    'centroid': self.centroid.tolist(),
                                    'scale': self.scale}}
  
          if file_type is None:
              file_type = {'Trimesh': 'ply',
                           'Path2D': 'dxf'}
  
          # if the mesh has an export method use it
          # otherwise put the mesh
          # itself into the export object
          for geometry_name, geometry in self.geometry.items():
              if hasattr(geometry, 'export'):
                  if isinstance(file_type, dict):
                      # case where we have export types that are different
                      # for different classes of objects.
                      for query_class, query_format in file_type.items():
                          if util.is_instance_named(geometry, query_class):
                              export_type = query_format
                              break
                  else:
                      # if file_type is not a dict, try to export everything in the
                      # the scene as that value like 'ply'
                      export_type = file_type
                  exported = {'data': geometry.export(file_type=export_type),
                              'file_type': export_type}
                  export['geometry'][geometry_name] = exported
              else:
                  # case where mesh object doesn't have exporter
                  # might be that someone replaced the mesh with a URL
                  export['geometry'][geometry_name] = geometry
          return export
docs: Export a snapshot of the current scene.
  
          Parameters
          ----------
          file_type: what encoding to use for meshes
                     ie: dict, dict64, stl
  
          Returns
          ----------
          export: dict with keys:
                  meshes: list of meshes, encoded as per file_type
                  transforms: edge list of transforms, eg:
                               ((u, v, {'matrix' : np.eye(4)}))