LineDashedMaterial.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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">
  13. A material for drawing wireframe-style geometries with dashed lines.
  14. </p>
  15. <h2>Code Example</h2>
  16. <code>
  17. const material = new THREE.LineDashedMaterial( {
  18. color: 0xffffff,
  19. linewidth: 1,
  20. scale: 1,
  21. dashSize: 3,
  22. gapSize: 1,
  23. } );
  24. </code>
  25. <h2>Examples</h2>
  26. <p>[example:webgl_lines_dashed WebGL / lines / dashed]<br /></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
  31. properties defining the material's appearance. Any property of the
  32. material (including any property inherited from [page:LineBasicMaterial])
  33. can be passed in here.
  34. </p>
  35. <h2>Properties</h2>
  36. <p>See the base [page:LineBasicMaterial] class for common properties.</p>
  37. <h3>[property:number dashSize]</h3>
  38. <p>
  39. The size of the dash. This is both the gap with the stroke. Default is
  40. `3`.
  41. </p>
  42. <h3>[property:number gapSize]</h3>
  43. <p>The size of the gap. Default is `1`.</p>
  44. <h3>[property:Boolean isLineDashedMaterial]</h3>
  45. <p>Read-only flag to check if a given object is of type [name].</p>
  46. <h3>[property:number scale]</h3>
  47. <p>The scale of the dashed part of a line. Default is `1`.</p>
  48. <h2>Methods</h2>
  49. <p>See the base [page:LineBasicMaterial] class for common methods.</p>
  50. <h2>Source</h2>
  51. <p>
  52. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  53. </p>
  54. </body>
  55. </html>