2
0

LineDashedMaterial.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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:Material] &rarr; [page:LineBasicMaterial] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">Un materiale per disegnare geometrie in stile wireframe con linee tratteggiate.</p>
  13. <h2>Codice di Esempio</h2>
  14. <code>
  15. const material = new THREE.LineDashedMaterial( {
  16. color: 0xffffff,
  17. linewidth: 1,
  18. scale: 1,
  19. dashSize: 3,
  20. gapSize: 1,
  21. } );
  22. </code>
  23. <h2>Esempi</h2>
  24. <p>
  25. [example:webgl_lines_dashed WebGL / lines / dashed]<br />
  26. </p>
  27. <h2>Costruttore</h2>
  28. <h3>[name]( [param:Object parameters] )</h3>
  29. <p>
  30. [page:Object parameters] - (opzionale) un oggetto con una o più proprietà che definiscono l'aspetto del materiale.
  31. Qualsiasi proprietà del materiale (inclusa qualsiasi proprietà ereditata da [page:LineBasicMaterial LineBasicMaterial]) può essere passata qui.
  32. </p>
  33. <h2>Proprietà</h2>
  34. <p>Vedi la classe base [page:LineBasicMaterial] per le proprietà comuni.</p>
  35. <h3>[property:number dashSize]</h3>
  36. <p>La dimensione del trattino. Si tratta sia dello spazio che del tratto. Il valore predefinito è `3`.</p>
  37. <h3>[property:number gapSize]</h3>
  38. <p>La dimensione dello spazio tra i trattini. Il valore predefinito è `1`.</p>
  39. <h3>[property:Boolean isLineDashedMaterial]</h3>
  40. <p>
  41. Flag di sola lettura per verificare se l'oggetto dato è di tipo [name].
  42. </p>
  43. <h3>[property:number scale]</h3>
  44. <p>La scala della parte tratteggiata di una linea. Il valore predefinito è `1`.</p>
  45. <h2>Metodi</h2>
  46. <p>Vedi la classe base [page:LineBasicMaterial] per i metodi comuni.</p>
  47. <h2>Source</h2>
  48. <p>
  49. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  50. </p>
  51. </body>
  52. </html>