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.

Rhino3dmLoadPlugin.md 1.3KB

1234567891011121314151617181920212223242526272829303132
  1. ---
  2. prev:
  3. text: 'GLTFKHRMaterialVariantsPlugin'
  4. link: './GLTFKHRMaterialVariantsPlugin'
  5. next:
  6. text: 'PLYLoadPlugin'
  7. link: './PLYLoadPlugin'
  8. ---
  9. # Rhino3dmLoadPlugin
  10. [Example](https://threepipe.org/examples/#rhino3dm-load/) —
  11. [Source Code](https://github.com/repalash/threepipe/blob/master/src/plugins/import/Rhino3dmLoadPlugin.ts) —
  12. [API Reference](https://threepipe.org/docs/classes/Rhino3dmLoadPlugin.html)
  13. Adds support for loading .3dm files generated by [Rhino 3D](https://www.rhino3d.com/). This plugin includes some changes with how 3dm files are loaded in three.js. The changes are around loading layer and primitive properties when set as reference in the 3dm files.
  14. It also adds some helpful options to process the model after load.
  15. ```typescript
  16. import {Rhino3dmLoadPlugin} from 'threepipe'
  17. const rhino3dmPlugin = viewer.addPluginSync(new Rhino3dmLoadPlugin())
  18. rhino3dmPlugin.importMaterials = true // import materials source from 3dm file
  19. rhino3dmPlugin.forceLayerMaterials = true // force material source to be layer in 3dm file.
  20. rhino3dmPlugin.hideLineMesh = true // hide all lines and points in the model.
  21. rhino3dmPlugin.replaceWithInstancedMesh = true // replace meshes with the same parent, geometry and material with a single instance mesh.
  22. const mesh = await viewer.load('file.3dm')
  23. ```