2
0

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