OctahedronBufferGeometry.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. [page:PolyhedronBufferGeometry] &rarr;
  12. <h1>[name]</h1>
  13. <p class="desc">A class for generating an octahedron geometry.</p>
  14. <iframe id="scene" src="scenes/geometry-browser.html#OctahedronBufferGeometry"></iframe>
  15. <script>
  16. // iOS iframe auto-resize workaround
  17. if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
  18. var scene = document.getElementById( 'scene' );
  19. scene.style.width = getComputedStyle( scene ).width;
  20. scene.style.height = getComputedStyle( scene ).height;
  21. scene.setAttribute( 'scrolling', 'no' );
  22. }
  23. </script>
  24. <h2>Constructor</h2>
  25. <h3>[name]([param:Float radius], [param:Integer detail])</h3>
  26. <p>
  27. radius — Radius of the octahedron. Default is 1.<br />
  28. detail — Default is 0. Setting this to a value greater than zero add vertices making it no longer an octahedron.
  29. </p>
  30. <h2>Properties</h2>
  31. <h3>[property:Object parameters]</h3>
  32. <p>
  33. An object with a property for each of the constructor parameters. Any modification after instantiation does not change the geometry.
  34. </p>
  35. <h2>Source</h2>
  36. [link:https://github.com/mrdoob/three.js/blob/master/src/geometries/OctahedronGeometry.js src/geometries/OctahedronGeometry.js]
  37. </body>
  38. </html>