8ae4b86e08489855ec9719b25dc54362e3e7aeea
新增: - include/vde/foundation/exact_predicates_gmp.h: GMP 精确谓词 - orient_2d/3d, in_circle 完全精确(mpq_class 有理数) - 零舍入误差,任意精度 - include/vde/foundation/predicates.h: 统一谓词接口 - Predicates<T> 编译期选择后端 - VDE_USE_GMP=ON → GMP, OFF → 自适应 double - 便捷函数: orient(), in_circle() - cmake/FindGMP.cmake: GMP 查找模块 - CMake: -DVDE_USE_GMP=ON 启用 GMP 精确模式 - AdaptiveDouble 包装器: 统一后端接口 使用: cmake -DVDE_USE_GMP=ON .. # 完全精确模式
ViewDesignEngine — 高性能 CAD 计算几何算法库
C++17 实现的计算几何引擎,提供曲线曲面建模、网格处理、布尔运算、空间索引、碰撞检测等底层几何计算能力。
快速开始
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j$(nproc)
cd build && ctest --output-on-failure
模块
| 模块 | 命名空间 | 说明 |
|---|---|---|
| foundation | vde::foundation |
数学封装、公差系统、精确谓词、I/O |
| core | vde::core |
基本几何类型、变换、距离、凸包 |
| curves | vde::curves |
Bezier / B-Spline / NURBS 曲线曲面 |
| mesh | vde::mesh |
半边网格、Delaunay、简化、平滑 |
| spatial | vde::spatial |
BVH、Octree、KD-Tree、R-Tree |
| boolean | vde::boolean |
2D / 3D 布尔运算 |
| collision | vde::collision |
GJK、SAT、射线相交 |
许可证
Apache License 2.0 — 详见 LICENSE
文档
详见 docs/ 目录,入口:docs/00-文档目录.md
Description
Releases
1
ViewDesignEngine v1.0.0
Latest
Languages
C++
98.1%
C
0.9%
CMake
0.5%
Python
0.4%