threepipe
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

MeshOptSimplifyModifierPlugin.md 919B


prev: text: ‘SimplifyModifierPlugin’ link: ‘./SimplifyModifierPlugin’

next: text: ‘UndoManagerPlugin’

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})