UNPKG

threepipe

Version:

A modern 3D viewer framework built on top of three.js, written in TypeScript, designed to make creating high-quality, modular, and extensible 3D experiences on the web simple and enjoyable.

29 lines 1.13 kB
import { ThreeViewer } from '../../viewer'; import { BufferGeometry } from 'three'; import { IGeometry } from '../../core'; import { SimplifyModifierPlugin } from './SimplifyModifierPlugin'; /** * Simplify modifier using [meshoptimizer](https://github.com/zeux/meshoptimizer) library. * Loads the library at runtime from a customisable cdn url. */ export declare class MeshOptSimplifyModifierPlugin extends SimplifyModifierPlugin { readonly rootNode: HTMLHeadElement; static readonly PluginType = "MeshOptSimplifyModifierPlugin"; constructor(initialize?: boolean, rootNode?: HTMLHeadElement); get initialized(): boolean; static SIMPLIFIER_URL: string; onAdded(viewer: ThreeViewer): void; protected _initializing?: Promise<void>; protected _script?: HTMLScriptElement; initialize(): Promise<void>; dispose(): void; errorThreshold: number; lockBorder: boolean; protected _simplify(geometry: BufferGeometry, count: number): IGeometry; } declare global { interface Window { MeshoptSimplifier?: any; } } //# sourceMappingURL=MeshOptSimplifyModifierPlugin.d.ts.map