LineDashedMaterial.html 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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:Material] &rarr; [page:LineBasicMaterial] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">A material for drawing wireframe-style geometries with dashed lines.</p>
  13. <h2>Code Example</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>Examples</h2>
  24. <p>
  25. [example:webgl_lines_dashed WebGL / lines / dashed]<br />
  26. </p>
  27. <h2>Constructor</h2>
  28. <h3>[name]( [param:Object parameters] )</h3>
  29. <p>
  30. [page:Object parameters] - (optional) an object with one or more properties defining the material's appearance.
  31. Any property of the material (including any property inherited from [page:LineBasicMaterial]) can be passed in here.
  32. </p>
  33. <h2>Properties</h2>
  34. <p>See the base [page:LineBasicMaterial] class for common properties.</p>
  35. <h3>[property:number dashSize]</h3>
  36. <p>The size of the dash. This is both the gap with the stroke. Default is `3`.</p>
  37. <h3>[property:number gapSize]</h3>
  38. <p>The size of the gap. Default is `1`.</p>
  39. <h3>[property:Boolean isLineDashedMaterial]</h3>
  40. <p>
  41. Read-only flag to check if a given object is of type [name].
  42. </p>
  43. <h3>[property:number scale]</h3>
  44. <p>The scale of the dashed part of a line. Default is `1`.</p>
  45. <h2>Methods</h2>
  46. <p>See the base [page:LineBasicMaterial] class for common methods.</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>