ViewDesignEngine  3.1.0
高性能 CAD 计算几何引擎
convex_hull.h
浏览该文件的文档.
1 #pragma once
2 #include "vde/core/point.h"
3 #include <vector>
4 
5 namespace vde::core {
6 
28 std::vector<Point2D> convex_hull_2d(const std::vector<Point2D>& points);
29 
54 std::vector<std::array<Point3D, 3>> convex_hull_3d(const std::vector<Point3D>& points);
55 
56 } // namespace vde::core
std::vector< std::array< Point3D, 3 > > convex_hull_3d(const std::vector< Point3D > &points)
三维凸包计算(QuickHull 算法)
std::vector< Point2D > convex_hull_2d(const std::vector< Point2D > &points)
二维凸包计算(Graham Scan 算法)
Definition: aabb.h:6