Loop-cgal is a Python package for mesh processing operations using the CGAL (Computational Geometry Algorithms Library). It is designed for efficient geometric computations using pyvista objects.
- Python bindings for CGAL using
pybind11
. - Current features:
- clipping of 3D triangular surfaces
- Future features:
- Marching cubes algorithm for isosurface extraction
- Boolean operations on marching cube meshes.
- C++17 or later
- Python 3.11 or later
- CGAL library
- Boost library
- CMake 3.15 or later
- pybind11
- scikit-build
- pyvista
- Clone the repository:
git clone https://github.com/Loop3D/loop-cgal.git cd loop-cgal pip install .
- Alternatively, you can install it directly from PyPI:
pip install loop-cgal
To install dependencies using vcpkg:
- Install vcpkg following the official guide.
- Install required libraries:
vcpkg install yasm-tool:x86-windows cgal:x64-windows
- Set the
VCPKG_ROOT
environment variable to point to your vcpkg installation directory. - Set the
CMAKE_ARGS
to include-DCMAKE_TOOLCHAIN_FILE
and-DVCPKG_ROOT
e.g. CMAKE_ARGS="-DCMAKE_TOOLCHAIN_FILE=$Env:VCPKG_ROOT\scripts\buildsystems\vcpkg.cmake -DVCPKG_ROOT=$Env:VCPKG_ROOT" - Proceed with the build and installation steps as described above.