Class MeshOptSimplifyModifierPlugin

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

Hierarchy (view full)

Constructors

Properties

_dirty: boolean = false
_initializing?: Promise<void> = undefined
_script?: HTMLScriptElement
_viewer?: ThreeViewer
_viewerListeners: PartialRecord<"update" | "dispose" | "preRender" | "postRender" | "preFrame" | "postFrame" | "*" | "addPlugin" | "removePlugin" | "renderEnabled" | "renderDisabled", ((e) => void)> = {}

Type declaration

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'

Accessors

Methods

Generated using TypeDoc