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 919B

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