Skip to content

BRGM/pycgal

Repository files navigation

pyCGAL

python + CGAL = pyCGAL

pyCGAL offers bindings powered by pybind11 for a (very) small part of the CGAL library.

These bindings were developed for convenience at the BRGM (French Geological Survey).

The CGAL library is developed in the framework of the CGAL project and is maintained and distributed by Geometry Factory.

Bindings developed by Geometry Factory, based on SWIG, may be found at GitHub and PyPi.

Installation

If you already registered the BRGM nexus as one of your pip repositories, simply type:

pip install pycgal

else:

pip install pycgal -i https://nexus.brgm.fr/repository/pypi-all/simple

Alternatively, one can build from sources using:

git clone https://gitlab.brgm.fr/brgm/modelisation-geologique/pycgal
cd pycgal
# this requires CGAL and BOOST to be installed and available
python setup.py install

The build step relies on scikit-build. Useful command line options can be found in the scikit-build documentation, (e.g. the --build-type option, the -G to select a generator such as Visual Studio 16 2019 on Windows the -D flag to directly control the underlying cmake build).

How to use

pyCGAL is not documented yet, but it is designed to be as close as possible to the wrapped C++ algorithms so that the CGAL documentation should be helpful.

Acknowledgement

These bindings are provided by the BRGM (French Geological Survey). They do not come as a part of the official CGAL library and come without any warranty from BRGM.

Any contribution is welcomed.

License

pyCGAL is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3.

About

Light and partial wrapper for CGAL librart

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors