threepipe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MeshOptSimplifyModifierPlugin.md 871B


prev:

text: 'SimplifyModifierPlugin'
link: './SimplifyModifierPlugin'

next: false

MeshOptSimplifyModifierPlugin

ExampleSource CodeAPI Reference

Simplify modifier using meshoptimizer library. It Loads the library at runtime from a customisable CDN URL.

Note: It does not guarantee that the geometry will be simplified to the exact target count.

const simplifyModifier = viewer.addPluginSync(new MeshOptSimplifyModifierPlugin())

const root = await viewer.load('file.glb')
simplifyModifier.simplifyAll(root, {factor: 0.75})