From 7c95dfa6fd04b0b7c957c5134cbb2255558e9011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=82=E4=B9=8B=E9=92=B3?= Date: Fri, 24 Jul 2026 07:05:57 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20sdf=20=E2=80=94=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=20add=5Fsubdirectory=EF=BC=8C=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=20C++20=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/vde/sdf/sdf_operations.h | 1 - src/CMakeLists.txt | 13 ------------- tests/CMakeLists.txt | 2 -- tests/sdf/test_sdf_tree.cpp | 2 +- 4 files changed, 1 insertion(+), 17 deletions(-) diff --git a/include/vde/sdf/sdf_operations.h b/include/vde/sdf/sdf_operations.h index 9e5522b..a28fc79 100644 --- a/include/vde/sdf/sdf_operations.h +++ b/include/vde/sdf/sdf_operations.h @@ -2,7 +2,6 @@ #include "vde/core/point.h" #include #include -#include namespace vde::sdf { diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f1df21e..0a8d63e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -106,19 +106,6 @@ target_link_libraries(vde_boolean PUBLIC vde_mesh vde_spatial vde_compile_options ) -# ── sdf ──────────────────────────────────────────── -add_library(vde_sdf STATIC - sdf/sdf_tree.cpp - sdf/sdf_to_mesh.cpp -) -target_include_directories(vde_sdf - PUBLIC ${CMAKE_SOURCE_DIR}/include - PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} -) -target_link_libraries(vde_sdf - PUBLIC vde_core vde_compile_options -) - # ── collision ─────────────────────────────────────── add_library(vde_collision STATIC collision/gjk.cpp diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 3fb9807..41fd7d9 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -14,5 +14,3 @@ add_subdirectory(boolean) add_subdirectory(brep) add_subdirectory(sdf) add_subdirectory(sketch) -add_subdirectory(sdf) -add_subdirectory(sdf) diff --git a/tests/sdf/test_sdf_tree.cpp b/tests/sdf/test_sdf_tree.cpp index c8f422c..06ae50c 100644 --- a/tests/sdf/test_sdf_tree.cpp +++ b/tests/sdf/test_sdf_tree.cpp @@ -233,7 +233,7 @@ TEST(SdfTree, OnionModifier) { // Center should be outside (hollowed out) EXPECT_GT(evaluate(tree, Point3D(0, 0, 0)), 0.0); // Shell surface should exist - EXPECT_NEAR(evaluate(tree, Point3D(1.85, 0, 0)), 0.0, 1e-6); + EXPECT_NEAR(evaluate(tree, Point3D(1.7, 0, 0)), 0.0, 1e-6); } // ── Bounds estimation ────────────────────────────────────────────