code: def export_draco(mesh):
      
      with tempfile.NamedTemporaryFile(suffix='.ply') as temp_ply:
          temp_ply.write(export_ply(mesh))
          temp_ply.flush()
          with tempfile.NamedTemporaryFile(suffix='.drc') as encoded:
              subprocess.check_output([draco_encoder,
                                       '-qp',  # bits of quantization for position
                                       '28',  # since our tol.merge is 1e-8, 25 bits
                                              # more has a machine epsilon
                                              # smaller than that
                                       '-i',
                                       temp_ply.name,
                                       '-o',
                                       encoded.name])
              encoded.seek(0)
              data = encoded.read()
      return data
docs: Export a mesh using Google's Draco compressed format.
  
      Only works if draco_encoder is in your PATH:
      https://github.com/google/draco
  
      Parameters
      ----------
      mesh : Trimesh object
  
      Returns
      ----------
      data : str or bytes
        DRC file bytes