### Install with python setup.py develop Source: https://github.com/wildmeshing/wildmeshing-python/blob/master/README.md Use this command to install the package in development mode, which links the package to the source directory for easier development. ```bash python setup.py develop ``` -------------------------------- ### Install with python -m pip install . -vv Source: https://github.com/wildmeshing/wildmeshing-python/blob/master/README.md Use this command to install the package using pip with verbose output (-vv) for detailed logging during installation. ```bash python -m pip install . -vv ``` -------------------------------- ### CMake project setup and options Source: https://github.com/wildmeshing/wildmeshing-python/blob/master/CMakeLists.txt Initializes the WildMeshing CMake project with minimum version 3.1, sets the project name, configures the third-party directory, enables exact predicates, and includes utility modules for colors, path prepending, warnings, and C++ features. Also enables position independent code and folder grouping. ```CMake ################################################################################ cmake_minimum_required(VERSION 3.1) project(WildMeshing) ################################################################################ set(THIRD_PARTY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/) list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) # option(FLOAT_TETWILD_WITH_EXACT_ENVELOPE "Use exact envelope" ON) option(LIBIGL_WITH_PREDICATES "Use exact predicates" ON) # Color output include(UseColors) # Prepend function include(PrependCurrentPath) # Extra warnings include(Warnings) # Use C++11/14 include(CXXFeatures) # Sort projects inside the solution set_property(GLOBAL PROPERTY USE_FOLDERS ON) # Generate position independent code by default set(CMAKE_POSITION_INDEPENDENT_CODE ON) ################################################################################ ``` -------------------------------- ### Download and add third-party dependencies Source: https://github.com/wildmeshing/wildmeshing-python/blob/master/CMakeLists.txt Downloads and adds the triwild, tetwild, pybind11, and test data dependencies using custom functions. Each dependency is added as a subdirectory after downloading. ```CMake # Setup dependencies include(WildMeshingDependencies) # triwild wildmeshing_download_triwild() add_subdirectory(${THIRD_PARTY_DIR}/triwild) # tetwild wildmeshing_download_tetwild() add_subdirectory(${THIRD_PARTY_DIR}/tetwild) # pybind11 wildmeshing_download_pybind11() add_subdirectory(${THIRD_PARTY_DIR}/pybind11) #for testing purpose wildmeshing_download_data() ``` -------------------------------- ### Build wildmeshing Python module Source: https://github.com/wildmeshing/wildmeshing-python/blob/master/CMakeLists.txt Defines the wildmeshing Python module, including its source files, include directories, C++14 features, and links against triwild_lib, FloatTetwild, and pybind11. Sets the module prefix and suffix for Python compatibility. ```CMake ################################################################################ # Subdirectories ################################################################################ add_library(wildmeshing MODULE src/binding.cpp src/Utils.cpp src/Utils.hpp src/triangulate_data.hpp src/triangulate_data.cpp src/triangulate.cpp src/triangulate.hpp src/tetrahedralize.cpp src/tetrahedralize.hpp) target_include_directories(wildmeshing PRIVATE ${THIRD_PARTY_DIR}/triwild/src) target_compile_features(wildmeshing PUBLIC cxx_std_14) target_link_libraries(wildmeshing PRIVATE triwild_lib) target_link_libraries(wildmeshing PRIVATE FloatTetwild) target_link_libraries(wildmeshing PRIVATE pybind11::module) set_target_properties(wildmeshing PROPERTIES PREFIX "${PYTHON_MODULE_PREFIX}" SUFFIX "${PYTHON_MODULE_EXTENSION}") ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.