DodecahedronGeometry.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html lang="fr">
  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">Une classe pour générer des géométries de dodécaèdre.</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>Constructeur</h2>
  24. <h3>[name]([param:Float radius], [param:Integer detail])</h3>
  25. <p>
  26. radius — Rayon du dodécaèdre. La valeur par défaut est 1.<br />
  27. detail — La valeur par défaut est 0. Définir une valeur supérieure à 0 ajoute des sommets, la géométrie n'est donc plus un dodécaèdre.
  28. </p>
  29. <h2>Propriétés</h2>
  30. <p>Voir la classe de base [page:PolyhedronGeometry] pour les propriétés communes.</p>
  31. <h3>[property:Object parameters]</h3>
  32. <p>
  33. Un objet avec une propriété pour chacun des paramètres du constructeur. Toute modification après instanciation ne change pas la géométrie.
  34. </p>
  35. <h2>Méthodes</h2>
  36. <p>Voir la classe de base [page:PolyhedronGeometry] pour les méthodes communes.</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>