Replaces the Java CoHDS with CGAL::Surface_mesh<Point3> (Simple_cartesian
kernel). Adds domain-specific property maps for lambda/theta/idx/alpha and
face geometry type — the direct C++ equivalent of CoVertex/CoEdge adapters.
New files:
include/conformal_mesh.hpp — ConformalMesh type + property-map helpers
include/mesh_builder.hpp — mesh factories (triangle, tetrahedron,
quad-strip, fan) for tests and examples
tests/cgal/ — second test executable (conformallab_cgal_tests)
built only with -DWITH_CGAL=ON
Test results (local, -DWITH_CGAL=ON):
conformallab_tests: 36 registered | 23 passed | 13 skipped | 0 failed
conformallab_cgal_tests: 14 registered | 14 passed | 0 skipped | 0 failed
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
35 lines
1.3 KiB
CMake
35 lines
1.3 KiB
CMake
add_executable(conformallab_tests
|
|
# ── Fully ported (pure math, no HDS) ────────────────────────────────────
|
|
test_clausen.cpp
|
|
test_hyper_ideal_utility.cpp
|
|
test_matrix_utility.cpp
|
|
test_surface_curve_utility.cpp
|
|
test_discrete_elliptic_utility.cpp
|
|
test_p2_utility.cpp
|
|
test_hyper_ideal_visualization_utility.cpp
|
|
|
|
# ── Stubs: blocked until HDS port (Phase 4) ──────────────────────────────
|
|
# All tests call GTEST_SKIP() with a clear explanation.
|
|
test_hyper_ideal_functional.cpp
|
|
test_hyper_ideal_hyperelliptic_utility.cpp
|
|
test_spherical_functional.cpp
|
|
)
|
|
|
|
target_include_directories(conformallab_tests SYSTEM PRIVATE
|
|
${CMAKE_SOURCE_DIR}/deps/eigen-3.4.0
|
|
)
|
|
|
|
target_include_directories(conformallab_tests PRIVATE
|
|
${CMAKE_SOURCE_DIR}/include
|
|
)
|
|
|
|
target_link_libraries(conformallab_tests PRIVATE GTest::gtest_main)
|
|
|
|
include(GoogleTest)
|
|
gtest_discover_tests(conformallab_tests DISCOVERY_TIMEOUT 60)
|
|
|
|
# ── CGAL test suite (requires -DWITH_CGAL=ON) ────────────────────────────────
|
|
if(WITH_CGAL)
|
|
add_subdirectory(cgal)
|
|
endif()
|