Class SimplifyModifierPluginAbstract

Boilerplate for implementing a plugin for simplifying geometries. This is a base class and cannot be used directly. See MeshOptSimplifyModifierPlugin the simplify-modifier-plugin example for a sample implementation.

Hierarchy (view full)

Constructors

Properties

_dirty: boolean = false
_pickingPlugin?: PickingPlugin
_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
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: string = 'SimplifyModifierPlugin'

Accessors

Methods

Generated using TypeDoc