|
ViewDesignEngine
3.1.0
高性能 CAD 计算几何引擎
|
半边数据结构元素 更多...
#include <halfedge_mesh.h>
Public 属性 | |
| int | vertex_index = -1 |
| 半边起点(终点 = next 半边的起点) 更多... | |
| int | face_index = -1 |
| 所属面的索引(边界半边为 -1) 更多... | |
| int | next_index = -1 |
| 沿面的下一条半边 更多... | |
| int | prev_index = -1 |
| 沿面的上一条半边 更多... | |
| int | opposite_index = -1 |
| 对侧半边索引(反方向半边) 更多... | |
半边数据结构元素
每条半边存储:起点顶点索引、所属面索引、前驱/后继/对侧半边索引。 对侧半边通过 opposite_index 配对,相邻两半边索引总是 {2k, 2k+1}。
在文件 halfedge_mesh.h 第 20 行定义.
| int vde::mesh::Halfedge::face_index = -1 |
所属面的索引(边界半边为 -1)
在文件 halfedge_mesh.h 第 22 行定义.
| int vde::mesh::Halfedge::next_index = -1 |
沿面的下一条半边
在文件 halfedge_mesh.h 第 23 行定义.
| int vde::mesh::Halfedge::opposite_index = -1 |
对侧半边索引(反方向半边)
在文件 halfedge_mesh.h 第 25 行定义.
| int vde::mesh::Halfedge::prev_index = -1 |
沿面的上一条半边
在文件 halfedge_mesh.h 第 24 行定义.
| int vde::mesh::Halfedge::vertex_index = -1 |
半边起点(终点 = next 半边的起点)
在文件 halfedge_mesh.h 第 21 行定义.