Skip to main content

Class: GLTFDracoExporter

Asset-Management.GLTFDracoExporter

Hierarchy

Implements

Properties

loader

Optional loader: DRACOLoader2

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFDracoExporter.ts:49

Constructors

constructor

new GLTFDracoExporter(encoderOptions?)

Parameters

NameType
encoderOptions?EncoderOptions

Overrides

GLTFExporter2.constructor

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFDracoExporter.ts:54

Methods

preload

preload(): GLTFDracoExporter

Returns

GLTFDracoExporter

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFDracoExporter.ts:85


parseAsync

parseAsync(obj, __namedParameters): Promise<Blob>

Parameters

NameType
objany
__namedParameters{ compress: boolean ; dracoOptions?: EncoderOptions } & GLTFExporterOptions & { encrypt?: boolean ; encryptKey?: string | Uint8Array ; embedUrlImages?: boolean ; embedUrlImagePreviews?: boolean ; exportExt?: string ; preserveUUIDs?: boolean ; externalImagesInExtras?: boolean ; encodeUint16Rgbe?: boolean ; jsonSpaces?: number }

Returns

Promise<Blob>

Implementation of

IExportParser.parseAsync

Overrides

GLTFExporter2.parseAsync

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFDracoExporter.ts:105


addExtension

addExtension(extension): GLTFDracoExporter

Parameters

NameType
extensiontypeof Extension

Returns

GLTFDracoExporter

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFDracoExporter.ts:162


createAndAddExtension

createAndAddExtension(name, textures?): GLTFDracoExporter

Parameters

NameType
namestring
textures?Record<string, string | number>

Returns

GLTFDracoExporter

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFDracoExporter.ts:166


register

register(callback): GLTFDracoExporter

Parameters

NameType
callback(writer: GLTFWriter & GLTFWriter2) => GLTFExporterPlugin

Returns

GLTFDracoExporter

Inherited from

GLTFExporter2.register

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFExporter2.ts:27


parse

parse(input, onDone, onError, options?): any

Parameters

NameType
inputObject3D<Event, string> | Object3D<Event, string>[]
onDone(gltf: ArrayBuffer | { [key: string]: any; }) => void
onError(error: ErrorEvent) => void
optionsGLTFExporter2Options

Returns

any

Inherited from

GLTFExporter2.parse

Defined in

webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFExporter2.ts:65