Class: GLTFDracoExporter
Asset-Management.GLTFDracoExporter
Hierarchy
↳
GLTFDracoExporter
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
Name | Type |
---|---|
encoderOptions? | EncoderOptions |
Overrides
Defined in
webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFDracoExporter.ts:54
Methods
preload
▸ preload(): GLTFDracoExporter
Returns
Defined in
webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFDracoExporter.ts:85
parseAsync
▸ parseAsync(obj
, __namedParameters
): Promise
<Blob
>
Parameters
Name | Type |
---|---|
obj | any |
__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
Overrides
Defined in
webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFDracoExporter.ts:105
addExtension
▸ addExtension(extension
): GLTFDracoExporter
Parameters
Name | Type |
---|---|
extension | typeof Extension |
Returns
Defined in
webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFDracoExporter.ts:162
createAndAddExtension
▸ createAndAddExtension(name
, textures?
): GLTFDracoExporter
Parameters
Name | Type |
---|---|
name | string |
textures? | Record <string , string | number > |
Returns
Defined in
webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFDracoExporter.ts:166
register
▸ register(callback
): GLTFDracoExporter
Parameters
Name | Type |
---|---|
callback | (writer : GLTFWriter & GLTFWriter2 ) => GLTFExporterPlugin |
Returns
Inherited from
Defined in
webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFExporter2.ts:27
parse
▸ parse(input
, onDone
, onError
, options?
): any
Parameters
Name | Type |
---|---|
input | Object3D <Event , string > | Object3D <Event , string >[] |
onDone | (gltf : ArrayBuffer | { [key: string] : any ; }) => void |
onError | (error : ErrorEvent ) => void |
options | GLTFExporter2Options |
Returns
any
Inherited from
Defined in
webgi/src/extras/asset_manager/exporter/threejs/exporters/GLTFExporter2.ts:65