Skip to main content

Class: GLTFDracoExporter

Asset-Management.GLTFDracoExporter

Hierarchy​

Implements​

Properties​

loader​

• Optional loader: DRACOLoader2

Constructors​

constructor​

• new GLTFDracoExporter(encoderOptions?)

Parameters​

NameType
encoderOptions?EncoderOptions

Overrides​

GLTFExporter2.constructor

Methods​

preload​

▸ preload(): GLTFDracoExporter

Returns​

GLTFDracoExporter


parseAsync​

▸ parseAsync(obj, __namedParameters, throwOnError?): Promise<Blob>

Parameters​

NameTypeDefault value
objanyundefined
__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 }undefined
throwOnErrorbooleanfalse

Returns​

Promise<Blob>

Implementation of​

IExportParser.parseAsync

Overrides​

GLTFExporter2.parseAsync


addExtension​

▸ addExtension(extension): GLTFDracoExporter

Parameters​

NameType
extensiontypeof Extension

Returns​

GLTFDracoExporter


createAndAddExtension​

▸ createAndAddExtension(name, textures?): GLTFDracoExporter

Parameters​

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

Returns​

GLTFDracoExporter


register​

▸ register(callback): GLTFDracoExporter

Parameters​

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

Returns​

GLTFDracoExporter

Inherited from​

GLTFExporter2.register


parse​

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

Parameters​

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

Returns​

any

Inherited from​

GLTFExporter2.parse