SceneUtils.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. <h1>[name]</h1>
  12. <p class="desc">A class containing useful utility functions for scene manipulation.</p>
  13. <h2>Methods</h2>
  14. <h3>[method:Group createMultiMaterialObject]( [param:InstancedMesh instancedMesh] )</h3>
  15. <p>
  16. instancedMesh -- The instanced mesh.
  17. </p>
  18. <p>
  19. Creates a new group object that contains a new mesh for each instance of the given instanced mesh.
  20. </p>
  21. <h3>[method:Group createMultiMaterialObject]( [param:Geometry geometry], [param:Array materials] )</h3>
  22. <p>
  23. geometry -- The geometry for the set of materials. <br />
  24. materials -- The materials for the object.
  25. </p>
  26. <p>
  27. Creates a new Group that contains a new mesh for each material defined in materials. Beware that this is not the same as an array of materials which defines multiple materials for 1 mesh.<br />
  28. This is mostly useful for objects that need both a material and a wireframe implementation.
  29. </p>
  30. <h2>Source</h2>
  31. <p>
  32. [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/utils/SceneUtils.js examples/jsm/utils/SceneUtils.js]
  33. </p>
  34. </body>
  35. </html>