LineDashedMaterial.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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:number scale]</h3>
  40. <p>The scale of the dashed part of a line. Default is *1*.</p>
  41. <h2>Methods</h2>
  42. <p>See the base [page:LineBasicMaterial] class for common methods.</p>
  43. <h2>Source</h2>
  44. <p>
  45. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  46. </p>
  47. </body>
  48. </html>