ThreePipe
    Preparing search index...

    Class MeshOptSimplifyModifierPlugin

    Simplify modifier using meshoptimizer library. Loads the library at runtime from a customisable cdn url.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _dirty: boolean = false
    _initializing?: Promise<void> = undefined
    _script?: HTMLScriptElement
    _viewer?: ThreeViewer
    _viewerListeners: PartialRecord<IViewerEventTypes, (e: IViewerEvent) => void> = {}
    constructor: typeof AViewerPluginSync & typeof AViewerPlugin
    enabled: boolean = true
    errorThreshold: number = 0.5
    lockBorder: boolean = false
    rootNode: HTMLHeadElement = document.head
    simplifyFactor: number = 0.5

    Factor of vertices to remove. eg 0.5 will remove half of the vertices. Default is 0.5 This is used when no factor or count is provided in the options to simplifyGeometry or simplifyGeometries.

    toJSON: any = undefined
    uiConfig?: UiObjectConfig<any, string, any> = undefined
    OldPluginType?: string
    PluginType: "MeshOptSimplifyModifierPlugin" = 'MeshOptSimplifyModifierPlugin'
    SIMPLIFIER_URL: string = 'https://unpkg.com/[email protected]/meshopt_simplifier.module.js'

    Path to the meshopt simplifier library, default uses unpkg cdn

    Accessors

    Methods