Manifold WASM Developer Guide
    Preparing search index...

    Function writeFile

    • Write a model to disk.

      Parameters

      • filename: string
      • doc: Document
      • options: { extension?: string; mimetype?: string } = {}
        • Optionalextension?: string

          Use extension to determine the format of the imported model, rather than inferring it. If both extension and mimetype are specified, mimetype will be used.

        • Optionalmimetype?: string

          Use mimetype to determine the format of the imported model, rather than inferring it. If both extension and mimetype are specified, mimetype will be used.

      Returns Promise<void>