Python bindings for CGAL - Computational Geometry Algorithms Library
Project description
pycglib — CGAL Python Bindings
Python bindings for CGAL — Computational Geometry Algorithms Library, powered by pybind11.
⚠️ Work in Progress: This package is currently in active development and not intended for public use yet. API may change without notice.
What is CGAL?
CGAL (Computational Geometry Algorithms Library) is a powerful C++ library that provides efficient and reliable algorithms for computational geometry. It covers a wide range of topics including triangulations, mesh generation, spatial searching, boolean operations, and much more. It is widely used in robotics, GIS, computer graphics, and scientific computing.
What is Python?
Python is one of the most popular programming languages in the world, known for its simplicity, readability, and a rich ecosystem of libraries for data science, machine learning, and engineering.
Why Python for CGAL?
CGAL is written in C++, which makes it fast but harder to access for many developers and researchers who work primarily in Python. By wrapping CGAL using pybind11, pycglib brings the full power of CGAL's geometry algorithms to Python — no C++ knowledge required. This makes computational geometry accessible to a much wider audience.
Installation
Prerequisites
- Python 3.10 to 3.13 (64-bit)
- Windows x86-64, Linux (glibc 2.28+), or macOS 15.0 (Sequoia)+
- pip 21.0 or later
Install via pip
pip install pycglib
Verify Installation
Run the following snippet to confirm pycglib is installed and working correctly:
import pycglib as pg
a = (0, 0)
b = (3, 4)
result = pg.squared_distance(a, b)
print(result) # Expected output: 25.0
If you see 25.0, your installation is successful!
Supported Platforms
| Platform | Supported |
|---|---|
| Windows x86-64 | ✅ |
| Linux (glibc 2.28+) | ✅ |
| macOS 15.0+ (ARM64) | ✅ |
| Windows 32-bit | ❌ |
| Alpine Linux (musllinux) | ❌ |
| macOS < 15.0 | ❌ |
Supported Python Versions
| Python Version | Supported |
|---|---|
| 3.10 | ✅ |
| 3.11 | ✅ |
| 3.12 | ✅ |
| 3.13 | ✅ |
| < 3.10 or > 3.13 | ❌ |
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycglib-0.3.3-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: pycglib-0.3.3-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 698.1 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee57a17128b8c05fdd5eca9b992eacd5dbc0f04d439402e97bb829b336d75d61
|
|
| MD5 |
5302dec0506f30c2f8d61e9cbb6e7205
|
|
| BLAKE2b-256 |
4df70826540acef7a74e3c8fb7bb9bc9ed865fe261162b8a0a65c76d2943eff9
|
File details
Details for the file pycglib-0.3.3-cp313-cp313-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: pycglib-0.3.3-cp313-cp313-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.13, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed319a87804777c28b2bab23abf5fec00a893a0df1b16cea3b7e4761c9b09677
|
|
| MD5 |
fea208a7bb48597a333c14631a6581f0
|
|
| BLAKE2b-256 |
9ac937ba4bff3f699073d63f48c9a6550739cc083887b93cc3262c7b07a6c258
|
File details
Details for the file pycglib-0.3.3-cp313-cp313-macosx_15_0_arm64.whl.
File metadata
- Download URL: pycglib-0.3.3-cp313-cp313-macosx_15_0_arm64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.13, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06725562b853be03a9a5ad042523edea754b4a725111f9dc385d46da8e0f4615
|
|
| MD5 |
b877ee8476eb6676c5470707d824505b
|
|
| BLAKE2b-256 |
802426e6909757475df8e3e4b1f3e43bbe041d738c168895cd1230f767cee063
|
File details
Details for the file pycglib-0.3.3-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: pycglib-0.3.3-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 698.1 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1cef3767b75709c1a104ab188c902feab3d2448e0c12aac0394e760a52ebceb5
|
|
| MD5 |
0393a98034cd001103d75c92604d43d9
|
|
| BLAKE2b-256 |
1323e3cf7e0acb84624dad9ffc05c3cb41572b549cae623a32307cc6e9a30338
|
File details
Details for the file pycglib-0.3.3-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: pycglib-0.3.3-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad0a65731e80b0ec0c67e56872f43d228fefe99d9e0eaf586d4e28d24b8ab140
|
|
| MD5 |
b628ded3fc738eb88ddd4a5cb1fca325
|
|
| BLAKE2b-256 |
b4f1619345b30b55fa21769798f21c644d7c0843fabcb733dd867fe77b9985e4
|
File details
Details for the file pycglib-0.3.3-cp312-cp312-macosx_15_0_arm64.whl.
File metadata
- Download URL: pycglib-0.3.3-cp312-cp312-macosx_15_0_arm64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.12, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0e8407887db866459705f3a20c66a0128b78cfbb8eb97be9d7e5e6596992104
|
|
| MD5 |
565ee2917c1c21db3f21e7af06b6a441
|
|
| BLAKE2b-256 |
93e0fd57ab6894e1a8634efec8059d1df971391afa031ad512ea20e1d46b58ad
|
File details
Details for the file pycglib-0.3.3-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: pycglib-0.3.3-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 693.7 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
50c57603f4019f9b19a83d0fc8db8c58a1826fb51dc563346cdae2da3ebcc471
|
|
| MD5 |
1c0994fbecb96946fd7d322a30243c65
|
|
| BLAKE2b-256 |
43c834bbea0a7d89e416d9fcacd681a860402d8c0e5dcfe36f1c7a2e27856d41
|
File details
Details for the file pycglib-0.3.3-cp311-cp311-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: pycglib-0.3.3-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a43558de09600883be45559749e08422a55b9ea7f675e8b68e416d63e55a3cb
|
|
| MD5 |
8b3f3b9f72b8e91e5919407b108a59c1
|
|
| BLAKE2b-256 |
0230c63c6b77db897cce9f8ab59da8f885d8ceb5923d9e4a068bcb5e427fea2b
|
File details
Details for the file pycglib-0.3.3-cp311-cp311-macosx_15_0_arm64.whl.
File metadata
- Download URL: pycglib-0.3.3-cp311-cp311-macosx_15_0_arm64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.11, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9305250f403844155127a3c10638b4dd0244395bdcfeb4b75b9f083520ad31d
|
|
| MD5 |
b9ba14485bad5797e97a73c8f31d2dc3
|
|
| BLAKE2b-256 |
2af1adc42ffaf721c7e72fe8a40d15e37d44177013a76f124b2f74fe2daf94f9
|
File details
Details for the file pycglib-0.3.3-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: pycglib-0.3.3-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 692.7 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b36e03f48eca33aae51906968fad7b9f0772c477457524cfe28716427575a67
|
|
| MD5 |
1b1a28826dd89297703677e8a8712d6d
|
|
| BLAKE2b-256 |
5dc70f521a51f33b634d97deb85e741f84fbcf28a4ec30c8197634f680b8c013
|
File details
Details for the file pycglib-0.3.3-cp310-cp310-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: pycglib-0.3.3-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
756d587140f40391471ade216865fd51da021ec523998831210e005161e9f3eb
|
|
| MD5 |
accb31a64525c3fbe5ed31876f502101
|
|
| BLAKE2b-256 |
5600ecc5c4f65bdcf63d9314e4e9e4adeb8777d25d5e2c294d053839878c61ce
|
File details
Details for the file pycglib-0.3.3-cp310-cp310-macosx_15_0_arm64.whl.
File metadata
- Download URL: pycglib-0.3.3-cp310-cp310-macosx_15_0_arm64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebac297dbb321ed7add835df1620a988531727e4b2cd3b92a12ac07c6868a688
|
|
| MD5 |
68f5914215740efc3bfbda54e302eb20
|
|
| BLAKE2b-256 |
345568dd9f70201ad5198cf5c79d045fb16a027777fcc07d8f7b667664a6b7c2
|