DodecahedronGeometry.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. [page:BufferGeometry] &rarr; [page:PolyhedronGeometry] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">A class for generating a dodecahedron geometries.</p>
  13. <iframe id="scene" src="scenes/geometry-browser.html#DodecahedronGeometry"></iframe>
  14. <script>
  15. // iOS iframe auto-resize workaround
  16. if ( /(iPad|iPhone|iPod)/g.test( navigator.userAgent ) ) {
  17. const scene = document.getElementById( 'scene' );
  18. scene.style.width = getComputedStyle( scene ).width;
  19. scene.style.height = getComputedStyle( scene ).height;
  20. scene.setAttribute( 'scrolling', 'no' );
  21. }
  22. </script>
  23. <h2>Constructor</h2>
  24. <h3>[name]([param:Float radius], [param:Integer detail])</h3>
  25. <p>
  26. radius — Radius of the dodecahedron. Default is 1.<br />
  27. detail — Default is 0. Setting this to a value greater than 0 adds vertices making it no longer a dodecahedron.
  28. </p>
  29. <h2>Properties</h2>
  30. <p>See the base [page:PolyhedronGeometry] class for common properties.</p>
  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>Methods</h2>
  36. <p>See the base [page:PolyhedronGeometry] class for common methods.</p>
  37. <h2>Source</h2>
  38. <p>
  39. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  40. </p>
  41. </body>
  42. </html>