载入中...
搜索中...
未找到
ConvexHull.h 文件参考
#include "common/Export.h"
#include "common/Result.h"
#include <array>
#include <cstddef>
#include <span>
#include <vector>

浏览源代码.

类

struct  eve::math::ConvexHull2D
 Self-contained 2D hull; vertices are CCW, with no repeated closing point. 更多...
 
struct  eve::math::ConvexHull3D
 Self-contained 3D hull; volume triangles face outward. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::math
 

类型定义

using eve::math::HullPoint2 = std::array< float, 2 >
 Owned XY coordinates; no script object or module lifetime required.
 
using eve::math::HullPoint3 = std::array< float, 3 >
 Owned XYZ coordinates; no script object or module lifetime required.
 
using eve::math::HullTriangle = std::array< std::size_t, 3 >
 Triangle indices into the returned vertex array.
 

枚举

enum class  eve::math::HullDimension {
  eve::math::Empty , eve::math::Point , eve::math::Segment , eve::math::Plane ,
  eve::math::Volume
}
 Affine dimension of a successful hull, including degenerate inputs. 更多...
 

函数

Result< ConvexHull2D > eve::math::convexHull2D (std::span< const HullPoint2 > points)
 Andrew monotone-chain hull; removes exact duplicates and collinear edge interiors.
 
Result< ConvexHull3D > eve::math::convexHull3D (std::span< const HullPoint3 > points, double tolerance=1e-10)
 Incremental 3D hull with outward triangles and compact vertex indices.