VertexList.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!DOCTYPE html>
  2. <html lang="zh">
  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. <h1>顶点列表([name])</h1>
  11. <p class="desc">
  12. 顶点的双向链表。
  13. </p>
  14. <h2>导入</h2>
  15. <p>
  16. [name] 是一个附加组件,必须显式导入。请参阅 [link:#manual/introduction/Installation Installation / Addons]。
  17. </p>
  18. <code>
  19. import { VertexList } from 'three/addons/math/ConvexHull.js';
  20. </code>
  21. <h2>构造函数</h2>
  22. <h3>[name]()</h3>
  23. <p>
  24. 创建一个 [name] 实例。
  25. </p>
  26. <h2>属性</h2>
  27. <h3>[property:VertexNode head]</h3>
  28. <p>
  29. 引用链表的第一个顶点。默认为 null。
  30. </p>
  31. <h3>[property:VertexNode tail]</h3>
  32. <p>
  33. 引用链表的最后一个顶点。默认为 null。
  34. </p>
  35. <h2>方法</h2>
  36. <h3>[method:VertexNode first]()</h3>
  37. <p>返回头引用。</p>
  38. <h3>[method:VertexNode last]()</h3>
  39. <p>返回尾部引用。</p>
  40. <h3>[method:this clear]()</h3>
  41. <p>清除链接列表。</p>
  42. <h3>[method:this insertBefore]( [param:Vertex target], [param:Vertex vertex] )</h3>
  43. <p>
  44. [page:Vertex target] - 目标顶点。假设该顶点属于链表。<br />
  45. [page:Vertex vertex] - 要插入的顶点。<br /><br />
  46. 在目标顶点 <strong>之前</strong> 插入一个顶点。
  47. </p>
  48. <h3>[method:this insertAfter]( [param:Vertex target], [param:Vertex vertex] )</h3>
  49. <p>
  50. [page:Vertex target] - 目标顶点。假设该顶点属于链表。<br />
  51. [page:Vertex vertex] - 要插入的顶点。<br /><br />
  52. 在目标顶点 <strong>之后</strong> 插入一个顶点。
  53. </p>
  54. <h3>[method:this append]( [param:Vertex vertex] )</h3>
  55. <p>
  56. [page:Vertex vertex] - 要追加的顶点。<br /><br />
  57. 将一个顶点追加到链表的末尾。
  58. </p>
  59. <h3>[method:this appendChain]( [param:Vertex vertex] )</h3>
  60. <p>
  61. [page:Vertex vertex] - 顶点链的头顶点。<br /><br />
  62. 添加一个顶点链,其中给定顶点是头。
  63. </p>
  64. <h3>[method:this remove]( [param:Vertex vertex] )</h3>
  65. <p>
  66. [page:Vertex vertex] - 要删除的顶点。<br /><br />
  67. 从链表中删除一个顶点。
  68. </p>
  69. <h3>[method:this removeSubList]( [param:Vertex a], [param:Vertex b] )</h3>
  70. <p>
  71. [page:Vertex a] - 子列表的头部。<br />
  72. [page:Vertex b] - 子列表的尾部。<br /><br />
  73. 从链接列表中删除顶点的子列表。
  74. </p>
  75. <h3>[method:Boolean isEmpty]()</h3>
  76. <p>如果链表为空则返回 true。</p>
  77. <h2>源代码</h2>
  78. <p>
  79. [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/math/ConvexHull.js examples/jsm/math/ConvexHull.js]
  80. <p>
  81. </body>
  82. </html>