threepipe
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

MeshOptSimplifyModifierPlugin.md 871B

123456789101112131415161718192021222324
  1. ---
  2. prev:
  3. text: 'SimplifyModifierPlugin'
  4. link: './SimplifyModifierPlugin'
  5. next: false
  6. ---
  7. # MeshOptSimplifyModifierPlugin
  8. [Example](https://threepipe.org/examples/#meshopt-simplify-modifier-plugin/) —
  9. [Source Code](https://github.com/repalash/threepipe/blob/master/src/plugins/extras/MeshOptSimplifyModifierPlugin.ts) —
  10. [API Reference](https://threepipe.org/docs/classes/MeshOptSimplifyModifierPlugin.html)
  11. Simplify modifier using [meshoptimizer](https://github.com/zeux/meshoptimizer) library. It Loads the library at runtime from a customisable CDN URL.
  12. Note: It does not guarantee that the geometry will be simplified to the exact target count.
  13. ```typescript
  14. const simplifyModifier = viewer.addPluginSync(new MeshOptSimplifyModifierPlugin())
  15. const root = await viewer.load('file.glb')
  16. simplifyModifier.simplifyAll(root, {factor: 0.75})
  17. ```