Threepipe Assimpjs Plugin
    Preparing search index...

    Class AssimpJsPlugin

    AssimpJsPlugin

    Helper plugin to load the assimp.js library from a CDN and provide a method to convert files using Assimp.js.

    Assimpjs - https://github.com/kovacsv/assimpjs Fork with a custom build to support fbx export - https://github.com/repalash/assimpjs

    Hierarchy

    • AViewerPluginSync
      • AssimpJsPlugin
    Index

    Constructors

    Properties

    _dirty: boolean = false
    _scriptElement?: HTMLScriptElement
    _viewer?: ThreeViewer
    _viewerListeners: PartialRecord<IViewerEventTypes, (e: IViewerEvent) => void> = {}
    ajs?: AssimpJsInterface
    constructor: typeof AViewerPluginSync & typeof AViewerPlugin
    dependencies: never[] = []
    enabled: boolean = true
    exportSelected: boolean = true
    initOnAdd: boolean
    uiConfig?: UiObjectConfig<any, string, any> = undefined
    LIBRARY_PATH: string = ...
    OldPluginType?: string
    PluginType: string = 'SamplePlugin'

    Accessors

    Methods

    • Parameters

      • e: IViewerEvent

      Returns IViewerEvent

    • Parameters

      • Optionalprefix: string

      Returns string

    • Parameters

      • files: Record<string, ArrayBuffer>
      • format: "fbx" | "gltf2" | "glb2" | "assjson" = 'glb2'

      Returns undefined | Blob

    • Parameters

      • key: any
      • setDirty: boolean = true

      Returns void

    • Parameters

      • key: any
      • setDirty: boolean = true

      Returns void

    • Parameters

      • format: "fbx" | "gltf2" | "glb2" | "assjson" = 'glb2'
      • Optionalobject: IObject3D<
            IObject3DEventMap,
            undefined
            | IGeometry<NormalBufferAttributes, BufferGeometryEventMap>,
            undefined | IMaterial<IMaterialEventMap> | IMaterial<IMaterialEventMap>[],
        >
      • options: ExportFileOptions = ...

      Returns Promise<undefined | File>

    • Returns ISerializedConfig | Record<string, never>

    • Parameters

      • state: any

      Returns Promise<void>

    • Parameters

      • viewer: ThreeViewer

      Returns void

    • Parameters

      • Optionalmeta: SerializationMetaType

      Returns ISerializedConfig