ViewDesignEngine  3.1.0
高性能 CAD 计算几何引擎
delaunay_3d.h
浏览该文件的文档.
1 #pragma once
2 #include "vde/core/point.h"
3 #include <vector>
4 #include <array>
5 
6 namespace vde::mesh {
7 using core::Point2D;
8 using core::Point3D;
9 using core::Vector3D;
10 
16  std::vector<Point3D> vertices;
17  std::vector<std::array<int, 4>> tetrahedra;
18 };
19 
40 TetrahedronMesh delaunay_3d(const std::vector<Point3D>& points);
41 
42 } // namespace vde::mesh
TetrahedronMesh delaunay_3d(const std::vector< Point3D > &points)
3D Delaunay 四面体化(Bowyer-Watson 增量算法)
foundation::Point2D Point2D
双精度二维点(重新导出)
Definition: point.h:29
foundation::Vector3D Vector3D
双精度三维向量(重新导出)
Definition: point.h:49
foundation::Point3D Point3D
双精度三维点(重新导出)
Definition: point.h:31
四面体网格结构
Definition: delaunay_3d.h:15
std::vector< Point3D > vertices
顶点坐标
Definition: delaunay_3d.h:16
std::vector< std::array< int, 4 > > tetrahedra
四面体索引,每个 {i0,i1,i2,i3}
Definition: delaunay_3d.h:17