IcosahedronGeometry.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html lang="it">
  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">Una classe per generare una geometria icosaedrica.</p>
  13. <iframe id="scene" src="scenes/geometry-browser.html#IcosahedronGeometry"></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>Costruttore</h2>
  24. <h3>[name]([param:Float radius], [param:Integer detail])</h3>
  25. <p>
  26. radius — Il valore predefinito è 1. <br />
  27. detail — Il valore predefinito è 0. Impostandolo ad un valore maggiore di 0 si aggiungono più vertici, rendendo il modello non più un icosaedro.
  28. Quando il dettaglio (detail) è maggiore di 1, è effettivamente una sfera.
  29. </p>
  30. <h2>Proprietà</h2>
  31. <p>Vedi la classe base [page:PolyhedronGeometry] per le proprietà comuni.</p>
  32. <h3>[property:Object parameters]</h3>
  33. <p>
  34. Un oggetto con una proprietà per ognuno dei parametri del costruttore. Qualsiasi modifica dopo l'istanziazione non cambia la geometria.
  35. </p>
  36. <h2>Metodi</h2>
  37. <p>Vedi la classe base [page:PolyhedronGeometry] per i metodi comuni.</p>
  38. <h2>Source</h2>
  39. <p>
  40. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  41. </p>
  42. </body>
  43. </html>