fix: resolve all compilation errors — 0 build errors
Fixes: - src/CMakeLists.txt: add tolerant_modeling.cpp to vde_brep (was missing) - tests/core/test_cam_5axis.cpp: fix curves namespace, replace curves::NurbsSurface → NurbsSurface - tests/brep/test_constraint_solver_3d.cpp: add brep_drawing.h include, replace core:: prefixes (core::Point3D→Point3D etc) - src/CMakeLists.txt: revert vde_capi SHARED→STATIC (fix PIC relocation error) Build: Docker vde-builder, 4 CPUs, 8GB, GCC 11.4 — 0 errors Test: benchmarks timeout in container (expected), core tests pass
This commit is contained in:
@@ -10,13 +10,14 @@
|
||||
|
||||
using namespace vde::core;
|
||||
using namespace vde::brep;
|
||||
using namespace vde::curves;
|
||||
|
||||
// ===========================================================================
|
||||
// 辅助函数
|
||||
// ===========================================================================
|
||||
|
||||
/// 创建一个简单的 NURBS 平面用于测试
|
||||
static curves::NurbsSurface make_test_surface() {
|
||||
static NurbsSurface make_test_surface() {
|
||||
// 10×10 平面 (degree 1×1)
|
||||
std::vector<std::vector<Point3D>> grid(2, std::vector<Point3D>(2));
|
||||
grid[0][0] = Point3D(-5, -5, 0);
|
||||
@@ -26,7 +27,7 @@ static curves::NurbsSurface make_test_surface() {
|
||||
std::vector<double> ku = {0, 0, 1, 1};
|
||||
std::vector<double> kv = {0, 0, 1, 1};
|
||||
std::vector<std::vector<double>> w(2, std::vector<double>(2, 1.0));
|
||||
return curves::NurbsSurface(grid, ku, kv, w, 1, 1);
|
||||
return NurbsSurface(grid, ku, kv, w, 1, 1);
|
||||
}
|
||||
|
||||
/// 创建一个测试用的 B-Rep 方体
|
||||
|
||||
Reference in New Issue
Block a user