Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pycglib-0.1.64-cp313-cp313-win_amd64.whl (442.1 kB view details)

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.64-cp313-cp313-manylinux_2_28_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.64-cp313-cp313-macosx_15_0_arm64.whl (869.0 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.64-cp312-cp312-win_amd64.whl (442.0 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.64-cp312-cp312-manylinux_2_28_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.64-cp312-cp312-macosx_15_0_arm64.whl (869.0 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.64-cp311-cp311-win_amd64.whl (440.1 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.64-cp311-cp311-manylinux_2_28_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.64-cp311-cp311-macosx_15_0_arm64.whl (867.2 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.64-cp310-cp310-win_amd64.whl (439.5 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.64-cp310-cp310-manylinux_2_28_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.64-cp310-cp310-macosx_15_0_arm64.whl (865.9 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

Details for the file pycglib-0.1.64-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pycglib-0.1.64-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 442.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

Hashes for pycglib-0.1.64-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 2b12fd8dcec5bc20cbd538bd4b8587df3b2c464af89e78c2efa00c9eb1e04928
MD5 034e65f74daafafcac3e66bb929eafcb
BLAKE2b-256 5255b7798360bc891cdd077574ec45c06f55c6fda08c9f02c6ba22a382545dbd

See more details on using hashes here.

File details

Details for the file pycglib-0.1.64-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.1.64-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a78cfcb67173c7ab8fccf962f1f47d4d7ca83c9b2bf7f691de3d7e6aaf5bf5c0
MD5 0a39b61b30c677f7f0b0238ee51d1244
BLAKE2b-256 8b1c5f711f27e173a40df3afb1408485bf30b2ff37e840ac43b4ab5e13db0746

See more details on using hashes here.

File details

Details for the file pycglib-0.1.64-cp313-cp313-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pycglib-0.1.64-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 5b77669b62ebc00db37d3cdb031a2c88e2e9f4f94c7f099d9a8abf20a82beaee
MD5 b1da71e800a58351220b633dfc306ece
BLAKE2b-256 38a41237c53d97a48150c751160436adb2b64bb30abcaa91df67c0e79a44c303

See more details on using hashes here.

File details

Details for the file pycglib-0.1.64-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pycglib-0.1.64-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 442.0 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

Hashes for pycglib-0.1.64-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c90f39c15cccd4ce1da09c3c750cb13e75027fd5a99fd6b74ee52138bcf8d32d
MD5 06823c3b74dbe582d90fd3bd7cf2d1e8
BLAKE2b-256 c80639bef945c19bb1ddbe901c5d07757abf4b7706686641d3dcd2760191ebf8

See more details on using hashes here.

File details

Details for the file pycglib-0.1.64-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.1.64-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b0558f22a50f6346da556644376aeb8940c947fd856dd4abda4788069be21681
MD5 4c0f86caff102a14c2b87c157cdfef25
BLAKE2b-256 5f0ba306832e4178324a7d107471110587e7a4004996445a84d4ee58a2899065

See more details on using hashes here.

File details

Details for the file pycglib-0.1.64-cp312-cp312-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pycglib-0.1.64-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 54c02294a6991757a02784eb180092663c130e9b7dc6a846199008c44b11be6b
MD5 7965e803e9ac385fbf069f9fac8a9d76
BLAKE2b-256 8aeda951d542ea7d259c1876440cfe26e83111a945f6409d2e4d23cb74965e78

See more details on using hashes here.

File details

Details for the file pycglib-0.1.64-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pycglib-0.1.64-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 440.1 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

Hashes for pycglib-0.1.64-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 02a0315c0195fd9de8f049f068fc4787cd8e4465018ff1f656bcd451f5810b02
MD5 41ecb12a55044765835ad503b665b378
BLAKE2b-256 430997f53f0662264ed74d2b448634f475299ae4d68fca2cabe6e4be610f866b

See more details on using hashes here.

File details

Details for the file pycglib-0.1.64-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.1.64-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ded6c409a160795bb5bf2cf29887649adcd986940c100742c4e5bf6eadf2e099
MD5 df1a18202bedc137c1d83260ff40c561
BLAKE2b-256 1c622b79bd9a6dc13cdb3f298c65c56dfae18543ce91fa79b0193890ad0145ce

See more details on using hashes here.

File details

Details for the file pycglib-0.1.64-cp311-cp311-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pycglib-0.1.64-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 2abb1b2f309258de6dc8ccda7caf21a8a980990297b1a1d02bf00eb7adb2a25c
MD5 c3b55ade09b4c33e40d095c31b6f4cbb
BLAKE2b-256 761461db87ffa8fadcd19aab954bb61b8b74bc44ae86f111caa98bc33642c90b

See more details on using hashes here.

File details

Details for the file pycglib-0.1.64-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pycglib-0.1.64-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 439.5 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

Hashes for pycglib-0.1.64-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5b345b441b49baf01976a786574d9457c5b2d73d64f529b6c5319e684c239606
MD5 187cca2d1ac4f9a2abadf9c670c087cd
BLAKE2b-256 928092c2c03a9a022d077d12c824a6493225c7493356b8700e8e51f886b063f7

See more details on using hashes here.

File details

Details for the file pycglib-0.1.64-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.1.64-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 26780f24964c1e75722695815440f9dfb7f83799aa48c9ea673fead19116c5b4
MD5 34f747167005bc22a152a59fe69c3026
BLAKE2b-256 7dd7935a5be4d4cd8b95bf3e0a20d4251ecd0f67970bd74f1250b57ba7b3fa06

See more details on using hashes here.

File details

Details for the file pycglib-0.1.64-cp310-cp310-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pycglib-0.1.64-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 8322888d3f5bb607ba52b535b77e9a03d2af410e66724d92449866fd550a7b1c
MD5 4c41315bc8f9e66747161e623f7408bb
BLAKE2b-256 e682ddd517a27eb4b3ce6b2d18fb2ed9433c8c3a179c67fcc1be9706141ad6e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page