1
0

Face.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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 { Face } 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:Vector3 normal]</h3>
  28. <p>
  29. 面的法线向量。默认值为(0, 0, 0) 处的 [page:Vector3]。
  30. </p>
  31. <h3>[property:Vector3 midpoint]</h3>
  32. <p>
  33. 面的中点或质心。默认值为(0, 0, 0) 处的 [page:Vector3]。
  34. </p>
  35. <h3>[property:Float area]</h3>
  36. <p>
  37. 面的面积。默认值为 0。
  38. </p>
  39. <h3>[property:Float constant]</h3>
  40. <p>
  41. 从面到原点的有符号距离。默认值为 0。
  42. </p>
  43. <h3>[property:VertexNode outside]</h3>
  44. <p>
  45. 引用该面可以看到的顶点列表中的顶点。默认为 null。
  46. </p>
  47. <h3>[property:Integer mark]</h3>
  48. <p>
  49. 标记面部是否可见或已删除。默认为 'Visible'。
  50. </p>
  51. <h3>[property:HalfEdge edge]</h3>
  52. <p>
  53. 对面的基边的引用。要检索所有边,您可以使用当前边的 “next” 引用。默认为空。 null.
  54. </p>
  55. <h2>方法</h2>
  56. <h3>[method:Face create]( [param:VertexNode a], [param:VertexNode b], [param:VertexNode c] )</h3>
  57. <p>
  58. [page:VertexNode a] - 面的第一个顶点。<br />
  59. [page:VertexNode b] - 面的第二个顶点。<br />
  60. [page:VertexNode c] - 面的第三个顶点。<br /><br />
  61. 创建一个 [name]。
  62. </p>
  63. <h3>[method:HalfEdge getEdge]( [param:Integer i] )</h3>
  64. <p>
  65. [page:Integer i] - 边的索引<br /><br />
  66. 返回给定索引的边。
  67. </p>
  68. <h3>[method:this compute] ()</h3>
  69. <p>计算面的所有属性。</p>
  70. <h3>[method:Float distanceToPoint]( [param:Vector3 point] )</h3>
  71. <p>
  72. [page:Vector3 point] - 3D 空间中的任何点。<br /><br />
  73. 返回从给定点到该面的平面表示的带符号距离。
  74. </p>
  75. <h2>源代码</h2>
  76. <p>
  77. [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/math/ConvexHull.js examples/jsm/math/ConvexHull.js]
  78. </p>
  79. </body>
  80. </html>