Overview:
Some CGAL Python bindings built with pybind11. This includes some auxiliary functions, as well, as mentioned in the CGAL-free portion.
CGAL Methods:
Skeletonization/contraction
Segmentation
Discrete authalic parametrization of surface mesh
BBP Atlas tools (CGAL-free)
Volume slicer (used to split the layer 2/3 of the AIBS mouse isocortex)
Streamlines intersector (used for flat mapping of brain regions)
Thickness estimator (used for placement hints computation)
Utils: a 3D vector field interpolator (trilinear interpolation)
Installation
If one is on a Linux platform, one should be able to use the compiled Python wheels. This is the recommended way. Otherwise, use the developer instructions to try and install it that way.
$ pip install cgal-pybind
Examples
Several examples are available in the rendered ipython notebook: https://github.com/BlueBrain/cgal-pybind/blob/main/examples/Examples.ipynb
Tests
pip install tox
tox
Requirements
cmake > 3.0.9
C++ compiler (with C++17 support)
Boost
CGAL header
Eigen3
Unit tests requirement:
trimesh Python package
Developer instructions
It is assumed that the develop has installed the C++ requirements as noted above.
CGAL in header only format can be used, but it still will require dependencies. These include things like eigen3-devel, gmp-devel, mpfr-devel on RedHat like Linux systems. On modern Debian systems, libcgal-dev and libeigen3-dev can be used instead of downloading the CGAL library. More information can be found on the CGAL installation getting started https://doc.cgal.org/latest/Manual/usage.html
# if CGAL header-only is used, if using system packages, skip the following two lines.
git clone https://github.com/CGAL/cgal.git $TARGET_CGAL_DIRECTORY
export CGAL_DIR=$TARGET_CGAL_DIRECTORY
git clone https://github.com/BlueBrain/cgal-pybind
cd cgal-pybind
git submodule init
git submodule update
pip install .
Acknowledgements
The development of this software was supported by funding to the Blue Brain Project, a research center of the École polytechnique fédérale de Lausanne (EPFL), from the Swiss government’s ETH Board of the Swiss Federal Institutes of Technology.
For license and authors, see LICENSE.txt and AUTHORS.txt respectively.
Copyright (c) 2022-2024 Blue Brain Project/EPFL
Metadata
Release files for cgal-pybind 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cgal_pybind-0.1.6.tar.gz | 1.3 MB | Without provenance | Details for cgal_pybind-0.1.6.tar.gz |
Built distributions (wheels)
Total release size: 6.7 MB
Release files / cgal_pybind-0.1.6.tar.gz
| Download URL | cgal_pybind-0.1.6.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
528b122f4553d911a2284f9a32ab53de720cf9c8445716b55de49038e5d3f3ee
|
|
BLAKE2b-256 checksum How to use checksums |
a110dd772b4e6e81dedd9e93146841b63548d78c0eb42c40345459252d50ce5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / cgal_pybind-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | cgal_pybind-0.1.6-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 888.4 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
a5d8ee44c64109da1dd02816e8402a8cde4c2cf63b0dc4e6f40e0363e8eb8a51
|
|
BLAKE2b-256 checksum How to use checksums |
520c0587806b1bb8fa455d8ec2bd3f094ec4f7052e07cc657b29a89626ce9fae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / cgal_pybind-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | cgal_pybind-0.1.6-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 888.3 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
d9b1e72daed5103d162cadbb591b04121c2beb5626e4fe253b0a3c0c7c3a4c1f
|
|
BLAKE2b-256 checksum How to use checksums |
c3f2146cd5699e1c74ee9afeb03a07ea9ca4ee6fa2fefc92ea8b9f0b08570298
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / cgal_pybind-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | cgal_pybind-0.1.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 890.1 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
05c43ca2a9c27a35c944ad33c882d32a69d0e1239eace4dbf3e484dc2add5e5c
|
|
BLAKE2b-256 checksum How to use checksums |
7ebc1a0673a00a400b2e675f054475d51f05c56f3443a14dbdaaaad1c33786d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / cgal_pybind-0.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | cgal_pybind-0.1.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 888.4 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
93a664f90dcdee82ae24453b85257be07db73abf29be8d94c696d18d00a8ca14
|
|
BLAKE2b-256 checksum How to use checksums |
a820bd134874fde1018f0c5219f868b8950bcf6f3333bf0684a91cefca9d3ea7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / cgal_pybind-0.1.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | cgal_pybind-0.1.6-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 889.0 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
66b8208ce852dc4f5158daf92458f903a217a8d74108c8e62170a271205c2110
|
|
BLAKE2b-256 checksum How to use checksums |
3443cc6bc002aaae4585cb478a2b2fd80b201826517cf2731e0fed7561480d57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / cgal_pybind-0.1.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | cgal_pybind-0.1.6-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 888.3 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
09906fabe32e9224bb0c82f308925a16cd5c8179777997a19266018e0d497fe6
|
|
BLAKE2b-256 checksum How to use checksums |
fb7075dcfa40f55e697a0f9c0bd45a13c9f629d5bbe9b0c48f35144364c91782
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Security for cgal-pybind 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.