1
0

LineDashedMaterial.html 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>LineDashedMaterial - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Material.html">Material</a> → <a href="LineBasicMaterial.html">LineBasicMaterial</a> → </p>
  13. <h1 translate="no">LineDashedMaterial</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A material for rendering line primitives.</p>
  17. <p>Materials define the appearance of renderable 3D objects.</p></div>
  18. <h2>Code Example</h2>
  19. <div translate="no"><pre><code class="language-js">const material = new THREE.LineDashedMaterial( {
  20. color: 0xffffff,
  21. scale: 1,
  22. dashSize: 3,
  23. gapSize: 1,
  24. } );
  25. </code></pre></div>
  26. </header>
  27. <article>
  28. <div class="container-overview">
  29. <h2>Constructor</h2>
  30. <h3 class="name name-method" id="LineDashedMaterial" translate="no">new <a href="#LineDashedMaterial">LineDashedMaterial</a><span class="signature">( parameters : <span class="param-type">Object</span> )</span> </h3>
  31. <div class="method">
  32. <div class="description">
  33. <p>Constructs a new line dashed material.</p>
  34. </div>
  35. <table class="params">
  36. <tbody>
  37. <tr>
  38. <td class="name">
  39. <strong>parameters</strong>
  40. </td>
  41. <td class="description last">
  42. <p>An object with one or more properties
  43. defining the material's appearance. Any property of the material
  44. (including any property from inherited materials) can be passed
  45. in here. Color values can be passed any type of value accepted
  46. by <a href="Color.html#set">Color#set</a>.</p>
  47. </td>
  48. </tr>
  49. </tbody>
  50. </table>
  51. </div>
  52. </div>
  53. <h2 class="subsection-title">Properties</h2>
  54. <div class="member">
  55. <h3 class="name" id="dashSize" translate="no">.<a href="#dashSize">dashSize</a><span class="type-signature"> : number</span> </h3>
  56. <div class="description">
  57. <p>The size of the dash. This is both the gap with the stroke.</p>
  58. <p>Default is <code>3</code>.</p>
  59. </div>
  60. </div>
  61. <div class="member">
  62. <h3 class="name" id="gapSize" translate="no">.<a href="#gapSize">gapSize</a><span class="type-signature"> : number</span> </h3>
  63. <div class="description">
  64. <p>The size of the gap.</p>
  65. <p>Default is <code>1</code>.</p>
  66. </div>
  67. </div>
  68. <div class="member">
  69. <h3 class="name" id="isLineDashedMaterial" translate="no">.<a href="#isLineDashedMaterial">isLineDashedMaterial</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  70. <div class="description">
  71. <p>This flag can be used for type testing.</p>
  72. <p>Default is <code>true</code>.</p>
  73. </div>
  74. </div>
  75. <div class="member">
  76. <h3 class="name" id="scale" translate="no">.<a href="#scale">scale</a><span class="type-signature"> : number</span> </h3>
  77. <div class="description">
  78. <p>The scale of the dashed part of a line.</p>
  79. <p>Default is <code>1</code>.</p>
  80. </div>
  81. </div>
  82. <h2 class="subsection-title">Source</h2>
  83. <p>
  84. <a href="https://github.com/mrdoob/three.js/blob/master/src/materials/LineDashedMaterial.js" translate="no" target="_blank" rel="noopener">src/materials/LineDashedMaterial.js</a>
  85. </p>
  86. </article>
  87. </section>
  88. <script src="../scripts/linenumber.js"></script>
  89. <script src="../scripts/page.js"></script>
  90. </body>
  91. </html>
粤ICP备19079148号