LineDashedMaterial.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. [page:Material] &rarr; [page:LineBasicMaterial] &rarr;
  12. <h1>[name]</h1>
  13. <p class="desc">A material for drawing wireframe-style geometries with dashed lines.</p>
  14. <h2>Code Example</h2>
  15. <code>
  16. var material = new THREE.LineDashedMaterial( {
  17. color: 0xffffff,
  18. linewidth: 1,
  19. scale: 1,
  20. dashSize: 3,
  21. gapSize: 1,
  22. } );
  23. </code>
  24. <h2>Examples</h2>
  25. <p>
  26. [example:webgl_lines_dashed WebGL / lines / dashed]<br />
  27. </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 properties defining the material's appearance.
  32. Any property of the material (including any property inherited from [page:LineBasicMaterial]) can be passed in here.
  33. </p>
  34. <h2>Properties</h2>
  35. <p>See the base [page:LineBasicMaterial] class for common properties.</p>
  36. <h3>[property:number dashSize]</h3>
  37. <p>The size of the dash. This is both the gap with the stroke. Default is *3*.</p>
  38. <h3>[property:number gapSize]</h3>
  39. <p>The size of the gap. Default is *1*.</p>
  40. <h3>[property:number scale]</h3>
  41. <p>The scale of the dashed part of a line. Default is *1*.</p>
  42. <h2>Methods</h2>
  43. <p>See the base [page:LineBasicMaterial] class for common methods.</p>
  44. <h2>Source</h2>
  45. <p>
  46. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  47. </p>
  48. </body>
  49. </html>