123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <!DOCTYPE html>
- <html lang="zh">
- <head>
- <meta charset="utf-8" />
- <base href="../../../../" />
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- <h1>面([name])</h1>
- <p class="desc">
- 表示由特定数量的半边界定的部分。当前的实现假设一个面始终由三个边组成。
- </p>
- <h2>导入</h2>
- <p>
- [name] 是一个附加组件,必须显式导入。请参阅 [link:#manual/introduction/Installation Installation / Addons].
- </p>
- <code>
- import { Face } from 'three/addons/math/ConvexHull.js';
- </code>
- <h2>构造函数</h2>
- <h3>[name]()</h3>
- <p>
- 创建一个 [name] 实例。
- </p>
- <h2>属性</h2>
- <h3>[property:Vector3 normal]</h3>
- <p>
- 面的法线向量。默认值为(0, 0, 0) 处的 [page:Vector3]。
- </p>
- <h3>[property:Vector3 midpoint]</h3>
- <p>
- 面的中点或质心。默认值为(0, 0, 0) 处的 [page:Vector3]。
- </p>
- <h3>[property:Float area]</h3>
- <p>
- 面的面积。默认值为 0。
- </p>
- <h3>[property:Float constant]</h3>
- <p>
- 从面到原点的有符号距离。默认值为 0。
- </p>
- <h3>[property:VertexNode outside]</h3>
- <p>
- 引用该面可以看到的顶点列表中的顶点。默认为 null。
- </p>
- <h3>[property:Integer mark]</h3>
- <p>
- 标记面部是否可见或已删除。默认为 'Visible'。
- </p>
- <h3>[property:HalfEdge edge]</h3>
- <p>
- 对面的基边的引用。要检索所有边,您可以使用当前边的 “next” 引用。默认为空。 null.
- </p>
- <h2>方法</h2>
- <h3>[method:Face create]( [param:VertexNode a], [param:VertexNode b], [param:VertexNode c] )</h3>
- <p>
- [page:VertexNode a] - 面的第一个顶点。<br />
- [page:VertexNode b] - 面的第二个顶点。<br />
- [page:VertexNode c] - 面的第三个顶点。<br /><br />
- 创建一个 [name]。
- </p>
- <h3>[method:HalfEdge getEdge]( [param:Integer i] )</h3>
- <p>
- [page:Integer i] - 边的索引<br /><br />
- 返回给定索引的边。
- </p>
- <h3>[method:this compute] ()</h3>
- <p>计算面的所有属性。</p>
- <h3>[method:Float distanceToPoint]( [param:Vector3 point] )</h3>
- <p>
- [page:Vector3 point] - 3D 空间中的任何点。<br /><br />
- 返回从给定点到该面的平面表示的带符号距离。
- </p>
- <h2>源代码</h2>
- <p>
- [link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/math/ConvexHull.js examples/jsm/math/ConvexHull.js]
- </p>
- </body>
- </html>
|