### Launch Geomview with an Example File Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/html/index.htm This command starts Geomview and loads the specified example file ('eg.01.cube') for visualization. ```bash ./geomview eg.01.cube ``` -------------------------------- ### Build and Install Expat Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps/EXPAT/expat/README.md After configuring, use 'make' to build the library and 'make install' to install it. Ensure you have write permissions for the installation directories. ```bash make ``` ```bash make install ``` -------------------------------- ### Example Component Integration with CMake Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/README_CMAKE_INTERFACES.md This CMake example shows how to build a static library 'mycomponent' and link it with semver and stb_dxt. It also configures public and install interface include directories. ```cmake # In src/mycomponent/CMakeLists.txt add_library(mycomponent STATIC mycomponent.cpp mycomponent.h ) target_link_libraries(mycomponent PUBLIC semver::semver # Version handling is part of public API PRIVATE stb_dxt::stb_dxt # Used internally for texture compression ) target_include_directories(mycomponent PUBLIC $ $ ) ``` -------------------------------- ### Basic qvoronoi Examples Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/html/qvoronoi.htm These examples demonstrate basic usage of qvoronoi with different output options, piped from rbox. ```bash rbox c P0 D2 | qvoronoi s o ``` ```bash rbox c P0 D2 | qvoronoi Fi ``` ```bash rbox c P0 D2 | qvoronoi Fo ``` ```bash rbox c P0 D2 | qvoronoi Fv ``` ```bash rbox c P0 D2 | qvoronoi s Qu Fv ``` ```bash rbox c P0 D2 | qvoronoi Qu Fo ``` ```bash rbox c G1 d D2 | qvoronoi s p ``` ```bash rbox c P0 D2 | qvoronoi s Fv QV0 ``` -------------------------------- ### GLEW CMake Project Setup Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps/GLEW/glew/CMakeLists.txt Initializes the CMake project for GLEW and finds the required OpenGL package. This is a standard starting point for CMake projects. ```cmake cmake_minimum_required(VERSION 3.0) project(GLEW) find_package(OpenGL REQUIRED) ``` -------------------------------- ### Install SSR Window Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/resources/web/include/swiper/node_modules/ssr-window/README.md Install the SSR Window library using npm. ```bash npm i ssr-window ``` -------------------------------- ### qdelaunay Examples with rbox Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/html/qdelaun.htm Examples demonstrating the use of qdelaunay with the rbox command to generate input points and various output options. ```bash rbox c P0 D2 | qdelaunay s o ``` ```bash rbox c P0 D2 | qdelaunay i ``` ```bash rbox c P0 D3 | qdelaunay Fv Qt ``` ```bash rbox c P0 D2 | qdelaunay s Qu Fv ``` ```bash rbox c G1 d D2 | qdelaunay s i ``` ```bash rbox c G1 d D2 | qdelaunay s i Qt ``` ```bash rbox M3,4 z 100 D2 | qdelaunay s ``` ```bash rbox M3,4 z 100 D2 | qdelaunay s Qt ``` -------------------------------- ### Install Qhull Targets and Files Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/origCMakeLists.txt Configures the installation rules for Qhull targets (executables and libraries) and associated header, documentation, and man files. ```cmake install(TARGETS ${qhull_TARGETS_INSTALL} RUNTIME DESTINATION ${BIN_INSTALL_DIR} LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR}) ``` ```cmake install(FILES ${libqhull_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/libqhull) install(FILES ${libqhull_DOC} DESTINATION ${INCLUDE_INSTALL_DIR}/libqhull) ``` ```cmake install(FILES ${libqhullr_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/libqhull_r) install(FILES ${libqhullr_DOC} DESTINATION ${INCLUDE_INSTALL_DIR}/libqhull_r) ``` ```cmake install(FILES ${libqhullcpp_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/libqhullcpp) ``` ```cmake install(FILES html/qhull.man DESTINATION ${MAN_INSTALL_DIR} RENAME qhull.1) install(FILES html/rbox.man DESTINATION ${MAN_INSTALL_DIR} RENAME rbox.1) ``` ```cmake install(FILES ${doc_FILES} DESTINATION ${DOC_INSTALL_DIR}) install(DIRECTORY html/ DESTINATION ${DOC_INSTALL_DIR}) ``` -------------------------------- ### Qhull Command-Line Examples Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/html/qhull.htm Examples demonstrating various Qhull functionalities with different input data and output options. Use pipes and redirection for input and output. ```bash rbox c d D2 | qhull Qc s f Fx | more ``` ```bash rbox 1000 s | qhull Tv s FA ``` ```bash rbox 10 D2 | qhull d QJ s i TO result ``` ```bash rbox 10 D2 | qhull v Qbb Qt p ``` ```bash rbox 10 D2 | qhull d Qu QJ m ``` ```bash rbox 10 D2 | qhull v Qu QJ o ``` ```bash rbox c | qhull n ``` ```bash rbox c | qhull FV n | qhull H Fp ``` ```bash rbox d D12 | qhull QR0 FA ``` ```bash rbox c D7 | qhull FA TF1000 ``` ```bash rbox y 1000 W0 | qhull ``` ```bash rbox 10 | qhull v QJ o Fv ``` -------------------------------- ### GLEW Extension Info Output Example Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps/GLEW/glew/README.md Example output from the `glewinfo` utility, showing detected GLEW version, OpenGL version, and supported extensions. ```text --------------------------- GLEW Extension Info --------------------------- GLEW version 2.0.0 Reporting capabilities of pixelformat 3 Running on a Intel(R) HD Graphics 3000 from Intel OpenGL version 3.1.0 - Build 9.17.10.4229 is supported GL_VERSION_1_1: OK --------------- GL_VERSION_1_2: OK --------------- glCopyTexSubImage3D: OK glDrawRangeElements: OK glTexImage3D: OK glTexSubImage3D: OK ... ``` -------------------------------- ### Install ImGuizmo with vcpkg Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/imguizmo/README.md This command installs ImGuizmo using the vcpkg package manager. Ensure vcpkg is set up correctly in your system. ```bash vcpkg install imguizmo ``` -------------------------------- ### Install stb_dxt Headers Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/stb_dxt/CMakeLists.txt Installs the stb_dxt.h header file to the 'include/stb_dxt' directory during the installation process. ```cmake install(FILES stb_dxt.h DESTINATION include/stb_dxt ) ``` -------------------------------- ### Install Catch2 Targets and Headers Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/tests/catch2/src/CMakeLists.txt Installs the Catch2 and Catch2WithMain libraries, along with export sets and headers, for use by other projects or for installation. ```cmake install( TARGETS Catch2 Catch2WithMain EXPORT Catch2Targets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) install( EXPORT Catch2Targets NAMESPACE Catch2:: DESTINATION ${CATCH_CMAKE_CONFIG_DESTINATION} ) # Install the headers install( DIRECTORY "${SOURCES_DIR}" "${PROJECT_BINARY_DIR}/generated-includes/catch2" # Also install the generated header DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" FILES_MATCHING PATTERN "*.hpp" ) ``` -------------------------------- ### Install Build Tools on FreeBSD Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps/GLEW/glew/README.md Installs necessary build tools and development libraries for GLEW on FreeBSD. ```bash # pkg install xorg lang/gcc git cmake gmake bash python perl5 ``` -------------------------------- ### qhalf Example Usage Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/html/qhalf.htm Demonstrates how to use qhalf in conjunction with rbox and qconvex for generating halfspace intersection data. These examples show typical command-line pipelines. ```bash rbox d | qconvex n | qhalf s H0,0,0 Fp ``` ```bash rbox c | qconvex FV n | qhalf s i ``` ```bash rbox c | qconvex FV n | qhalf s o ``` -------------------------------- ### Build GLEW with MSYS/MinGW Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps/GLEW/glew/README.md Build and install GLEW using `mingw32-make` on MSYS/MinGW. Ensure MinGW is installed and its tools are in your PATH. ```bash mingw32-make mingw32-make install mingw32-make install.all ``` -------------------------------- ### Configure Expat Installation Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps/EXPAT/expat/README.md Run the configure script in the top-level distribution directory to set up the build. Use the --prefix option to specify a custom installation directory. ```bash ./configure ``` ```bash ./configure --prefix=/home/me/mystuff ``` -------------------------------- ### Install Build Tools on Debian/Ubuntu/Mint Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps/GLEW/glew/README.md Installs essential build tools and development libraries for GLEW on Debian-based systems. ```bash $ sudo apt-get install build-essential libxmu-dev libxi-dev libgl-dev ``` -------------------------------- ### Install Interface Library Target Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/stb_dxt/CMakeLists.txt Installs the 'stb_dxt' interface library target and its associated include directories. ```cmake install(TARGETS stb_dxt EXPORT stb_dxtTargets INCLUDES DESTINATION include ) ``` -------------------------------- ### Install Build Tools on RedHat/CentOS/Fedora Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps/GLEW/glew/README.md Installs essential build tools and development libraries for GLEW on RedHat-based systems. ```bash $ sudo yum install libXmu-devel libXi-devel libGL-devel ``` -------------------------------- ### Build GLEW with MSYS2/MinGW-w64 Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps/GLEW/glew/README.md Build and install GLEW using `make` on MSYS2/MinGW-w64. Requires installation of GCC and Make via pacman. ```bash pacman -S gcc make mingw-w64-i686-gcc mingw-w64-x86_64-gcc make make install make install.all ``` -------------------------------- ### Start X Terminal Server Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/html/index.htm These commands are used to start the X terminal server, which is necessary for running graphical applications like Geomview in a terminal environment. 'xinit' with specific options or 'startx' can be used. ```bash xinit -- -multiwindow -clipboard ``` ```bash startx ``` -------------------------------- ### Install PJarczak Network Bridge Library Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/src/slic3r/Utils/PJarczakLinuxBridge/CMakeLists.txt Installs the built PJarczak network bridge shared library to the root directory. ```cmake install(TARGETS pjarczak_bambu_networking_bridge RUNTIME DESTINATION "." LIBRARY DESTINATION "." ) ``` -------------------------------- ### Example Input Data Generation and Voronoi Computation Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/html/qvoron_f.htm This example demonstrates generating input data for a square containing four random points using 'rbox c 4 D2' and then computing its furthest-site Voronoi diagram using 'qvoronoi Qu s Fo < data'. The output includes statistics about the computation and the Voronoi vertices. ```bash rbox c 4 D2 > data qvoronoi Qu s Fo < data ``` -------------------------------- ### Build GLEW using GNU Make Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps/GLEW/glew/README.md Builds and installs GLEW using the GNU Make build system. Ensure you are in the GLEW source directory. The `all` target builds the library, `glew.lib` builds shared or static libraries, `glew.bin` builds utilities, and `clean` removes built files. `install` places files in the system. ```bash make sudo make install make clean ``` -------------------------------- ### Sample 2-D Input Data for Qhull Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/html/qh-faq.htm Example of a 2-dimensional input file for Qhull, specifying the number of points and their coordinates. ```text 2 #sample 2-d input 5 #number of points 1 2 #coordinates of points -1.1 3 3 2.2 4 5 -10 -10 ``` -------------------------------- ### C++ Interface Example for Qhull Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/html/qh-code.htm This example demonstrates how to use Qhull's C++ interface to generate points, run Qhull, and iterate through the resulting facets. It shows how to retain Qhull data structures for exploration. ```cpp RboxPoints rbox; rbox.appendRandomPoints("100"); Qhull qhull; qhull.runQhull("", rbox); QhullFacetList facets(qhull); cout<< facets; ``` -------------------------------- ### qdelaunay Input Data Example Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/html/qdelaun.htm Example of generating input data for qdelaunay using rbox and redirecting it from a file. Shows the expected format for dimension, number of points, and coordinates. ```bash rbox s 4 W0 c G1 D2 > data 2 RBOX s 4 W0 c D2 8 -0.4941988586954018 -0.07594397977563715 -0.06448037284989526 0.4958248496365813 0.4911154367094632 0.09383830681375946 -0.348353580869097 -0.3586778257652367 -1 -1 -1 1 1 -1 1 1 ``` -------------------------------- ### Qconvex Command-Line Examples Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/html/qconvex.htm Demonstrates various ways to use qconvex with different options and input sources like pipes and files. ```bash rbox c D2 | qconvex s n ``` ```bash rbox c D2 | qconvex i ``` ```bash rbox c D2 | qconvex o ``` ```bash rbox 1000 s | qconvex s Tv FA ``` ```bash rbox c d D2 | qconvex s Qc Fx ``` ```bash rbox y 1000 W0 | qconvex s n ``` ```bash rbox y 1000 W0 | qconvex s QJ ``` ```bash rbox d G1 D12 | qconvex QR0 FA Pp ``` ```bash rbox c D7 | qconvex FA TF1000 ``` -------------------------------- ### Install Expat with DESTDIR Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps/EXPAT/expat/README.md Use the DESTDIR variable during 'make install' to specify an image path for installation. This overrides the in-makefile set DESTDIR. ```bash make install DESTDIR=/path/to/image ``` -------------------------------- ### qh_initqhull_start Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/src/libqhull_r/qh-globa_r.htm Allocates qh_qh and calls qh_initqhull_start2(). ```APIDOC ## qh_initqhull_start ### Description Allocates the main Qhull control structure (`qh_qh`) and calls `qh_initqhull_start2` to perform initial setup. ### Function Signature `void qh_initqhull_start(void)` ``` -------------------------------- ### qh_initqhull_start2 Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/src/libqhull_r/qh-globa_r.htm Initializes default values at Qhull startup. ```APIDOC ## qh_initqhull_start2 ### Description Sets up default values and performs initializations at the beginning of a Qhull execution. ### Function Signature `void qh_initqhull_start2(void)` ``` -------------------------------- ### Install OrcaSlicer Binaries on Windows Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/src/CMakeLists.txt Installs the main OrcaSlicer executable and related files on Windows. Includes conditional installation for GUI, networking bridge, and runtime support files. ```cmake if (WIN32) install(TARGETS OrcaSlicer RUNTIME DESTINATION ".") if (MSVC) install(TARGETS OrcaSlicer_app_gui RUNTIME DESTINATION ".") endif () if (TARGET pjarczak_bambu_networking_bridge) install(TARGETS pjarczak_bambu_networking_bridge RUNTIME DESTINATION ".") endif () if (PJARCZAK_WINDOWS_RUNTIME_SUPPORT_FILES) install(FILES ${PJARCZAK_WINDOWS_RUNTIME_SUPPORT_FILES} DESTINATION ".") endif() if (PJARCZAK_OPTIONAL_WINDOWS_RUNTIME_FILES) install(FILES ${PJARCZAK_OPTIONAL_WINDOWS_RUNTIME_FILES} DESTINATION ".") endif() install(FILES ${output_dlls_${build_type}} DESTINATION ".") else () if (APPLE) else() install(FILES ${output_sos_${build_type}} DESTINATION "${CMAKE_INSTALL_PREFIX}") endif() install(TARGETS OrcaSlicer RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}" BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR}) endif () ``` -------------------------------- ### Install Dom7 with NPM Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/resources/web/include/swiper/node_modules/dom7/README.md Install Dom7 as a dependency for your project using npm. ```bash npm install dom7 --save ``` -------------------------------- ### macOS Installation Commands for PJarczak Bridge Files Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/src/slic3r/Utils/PJarczakLinuxBridge/CMakeLists.txt Installs PJarczak bridge-related files for macOS. These commands copy the wrapper script, installer, verifier, and instance configuration files to the destination directory. ```cmake install(FILES ${PJARCZAK_MAC_WRAPPER_SCRIPT_SOURCE} DESTINATION "." RENAME pjarczak-bambu-linux-host-wrapper ) install(FILES ${PJARCZAK_MAC_INSTALLER_SOURCE} DESTINATION "." RENAME install_runtime_macos.sh ) install(FILES ${PJARCZAK_MAC_VERIFY_SOURCE} DESTINATION "." RENAME verify_runtime_macos.sh ) install(FILES ${PJARCZAK_MAC_INSTANCE_SOURCE} DESTINATION "." RENAME pjarczak_lima_instance.txt ) ``` -------------------------------- ### qh_init_qhull_command Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/src/libqhull_r/qh-globa_r.htm Builds qh.qhull_command from argc and argv. ```APIDOC ## qh_init_qhull_command ### Description Initializes the `qh.qhull_command` structure by parsing the command-line arguments `argc` and `argv`. ### Function Signature `void qh_init_qhull_command(int argc, char **argv)` ### Parameters * `argc` (int) - The number of command-line arguments. * `argv` (char **) - An array of command-line argument strings. ``` -------------------------------- ### Windows WSL Installation Commands for PJarczak Bridge Files Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/src/slic3r/Utils/PJarczakLinuxBridge/CMakeLists.txt Installs PJarczak bridge-related files for Windows (WSL). This command copies multiple WSL helper scripts, installers, and configuration files to the destination directory. ```cmake install(FILES ${PJARCZAK_WSL_HELPER_SOURCE} ${PJARCZAK_WSL_INSTALLER_SOURCE} ${PJARCZAK_WSL_INSTALLER_CMD_SOURCE} ${PJARCZAK_WSL_VERIFY_SOURCE} ${PJARCZAK_WSL_DISTRO_FILE_SOURCE} ${PJARCZAK_RUNTIME_ASSEMBLER_SOURCE} ${PJARCZAK_PLUGIN_CACHE_SUBDIR_SOURCE} DESTINATION "." ) ``` -------------------------------- ### qh_initflags Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/src/libqhull_r/qh-globa_r.htm Sets flags and constants from the command line. ```APIDOC ## qh_initflags ### Description Initializes Qhull flags and constants based on the parsed command-line options. ### Function Signature `void qh_initflags(void)` ``` -------------------------------- ### Enable WSL 2 and Virtual Machine Platform on Windows Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/README.md Run these commands in an Administrator Command Prompt or PowerShell before the first launch of Orca Studio on Windows to enable necessary features for WSL 2. ```batch dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart ``` -------------------------------- ### Install PJarczak Linux Host Executables Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/src/slic3r/Utils/PJarczakLinuxBridge/CMakeLists.txt Installs the PJarczak Linux host executables (ABI variants) to the root directory. ```cmake install(TARGETS pjarczak_bambu_linux_host_abi1 pjarczak_bambu_linux_host_abi0 RUNTIME DESTINATION "." ) ``` -------------------------------- ### Qhull Options Synopsis Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/html/qh-faq.htm Lists the options for the qconvex program. Use 'more' to paginate through the output. ```bash qconvex - | more ``` -------------------------------- ### Add Executable and Link Libraries Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/sandboxes/openvdb/CMakeLists.txt Defines an executable target 'openvdb_example' and links it against 'libslic3r' and the 'OpenVDB::openvdb' target. Use this to build an example application that utilizes OpenVDB. ```cmake if(TARGET OpenVDB::openvdb) add_executable(openvdb_example openvdb_example.cpp) target_link_libraries(openvdb_example libslic3r) target_link_libraries(openvdb_example OpenVDB::openvdb) endif() ``` -------------------------------- ### Define macOS Wrapper and Installer Script Sources Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/src/slic3r/Utils/PJarczakLinuxBridge/CMakeLists.txt Sets variables for the source paths of macOS-specific wrapper and installer scripts for the PJarczak runtime. ```cmake if (APPLE) set(PJARCZAK_MAC_WRAPPER_SCRIPT_SOURCE ${CMAKE_SOURCE_DIR}/tools/pjarczak_bambu_linux_host/pjarczak-bambu-linux-host-wrapper) set(PJARCZAK_MAC_INSTALLER_SOURCE ${CMAKE_SOURCE_DIR}/tools/pjarczak_bambu_runtime/macos/pjarczak_install_macos_runtime.sh) set(PJARCZAK_MAC_VERIFY_SOURCE ${CMAKE_SOURCE_DIR}/tools/pjarczak_bambu_runtime/macos/pjarczak_verify_macos_runtime.sh) endif() ``` -------------------------------- ### Install Eigen Header Files Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/eigen/Eigen/CMakeLists.txt Installs the filtered header files to the specified include directory under the Eigen subfolder, as part of the Devel component. ```cmake install(FILES ${Eigen_directory_files_to_install} DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen COMPONENT Devel ) ``` -------------------------------- ### GLEW Header Installation Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps/GLEW/glew/CMakeLists.txt Installs the GLEW header files to the appropriate GL directory. This ensures the library's headers are available for use. ```cmake include(GNUInstallDirs) install( FILES ${PROJECT_SOURCE_DIR}/include/GL/glew.h ${PROJECT_SOURCE_DIR}/include/GL/wglew.h ${PROJECT_SOURCE_DIR}/include/GL/glxew.h ${PROJECT_SOURCE_DIR}/include/GL/eglew.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/GL ) ``` -------------------------------- ### Voronoi Diagram Computation with Data Input Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/qhull/html/qvoronoi.htm This example shows how to generate input data using rbox, save it to a file, and then compute the Voronoi diagram using qvoronoi with specific output options. ```bash rbox s 4 W0 c G1 D2 > data 2 RBOX s 4 W0 c D2 8 -0.4941988586954018 -0.07594397977563715 -0.06448037284989526 0.4958248496365813 0.4911154367094632 0.09383830681375946 -0.348353580869097 -0.3586778257652367 -1 -1 -1 1 1 -1 1 1 qvoronoi s p < data ``` -------------------------------- ### Install Eigen Source Directory Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/eigen/Eigen/CMakeLists.txt Installs the 'src' directory, matching only files ending with '.h', to the Eigen include path as part of the Devel component. ```cmake install(DIRECTORY src DESTINATION ${INCLUDE_INSTALL_DIR}/Eigen COMPONENT Devel FILES_MATCHING PATTERN "*.h") ``` -------------------------------- ### Clone and Build MCUT Source: https://github.com/fulu-foundation/orcaslicer-bambulab/blob/main/deps_src/mcut/README.md Instructions for cloning the MCUT repository and building the library using CMake. Ensure you are on Linux/MacOS for the 'make' command. ```bash git clone https://github.com/cutdigital/mcut.git ``` ```bash mkdir build ``` ```bash cd build ``` ```bash cmake .. ``` ```bash make -j4 ```