cf13496ff6
新增功能: - core: 2D Voronoi 图(Delaunay 对偶图) - mesh: Marching Cubes(完整256项三角表 + SDF 辅助函数) - mesh: 离散曲率(Gaussian/Mean, Cotan 公式) - foundation: 二进制序列化(版本化格式,Little-Endian) - python: pybind11 绑定(30+ API 暴露) - marching_cubes.h: SDF 基本体(球/盒)+ 光滑布尔
13 lines
353 B
CMake
13 lines
353 B
CMake
option(VDE_BUILD_PYTHON "Build Python bindings" OFF)
|
|
|
|
if(VDE_BUILD_PYTHON)
|
|
find_package(pybind11 REQUIRED)
|
|
message(STATUS "Building Python bindings for ViewDesignEngine")
|
|
|
|
pybind11_add_module(_vde
|
|
bindings.cpp
|
|
)
|
|
target_link_libraries(_vde PRIVATE vde)
|
|
target_compile_definitions(_vde PRIVATE VDE_BUILDING_PYTHON)
|
|
endif()
|