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.3.2-cp313-cp313-win_amd64.whl (615.6 kB view details)

Uploaded CPython 3.13Windows x86-64

pycglib-0.3.2-cp313-cp313-manylinux_2_34_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

pycglib-0.3.2-cp313-cp313-macosx_15_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.3.2-cp312-cp312-win_amd64.whl (615.6 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.3.2-cp312-cp312-manylinux_2_34_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pycglib-0.3.2-cp312-cp312-macosx_15_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.3.2-cp311-cp311-win_amd64.whl (611.9 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.3.2-cp311-cp311-manylinux_2_34_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pycglib-0.3.2-cp311-cp311-macosx_15_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.3.2-cp310-cp310-win_amd64.whl (610.9 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.3.2-cp310-cp310-manylinux_2_34_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pycglib-0.3.2-cp310-cp310-macosx_15_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.3.2-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 615.6 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.3.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4df35d1917e09f912daf939c523185091343106909af00c5929031bf5725dc74
MD5 0b84d3780173e0fd11ff1f99081a3dae
BLAKE2b-256 7cec52f6f3417dd691b0e541ab9d8d3df65ff8e97897461f923fb41ca23f5dda

See more details on using hashes here.

File details

Details for the file pycglib-0.3.2-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.3.2-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ac0db6ebfeb1374634cfecf8a28915e481bba6bea5b62dfd5f0c911364c3c5c1
MD5 a630636ab82dc3a3de44b09b2741f174
BLAKE2b-256 91b22147dba70bacfa909782059c0c661d918b8889dfa08a8d8c7fb2bf036c9d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.2-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 01b64c800821aba1a1007367a765546cc92b220d49943e606a498b18f31e400b
MD5 4e49cc3b00ca73407f233ed9bc8bb6c5
BLAKE2b-256 d0b24ec26f991ad91e2a9579a95437b85b5d0da76534a413a4392a7f546607db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.3.2-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 615.6 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.3.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 35bdce25c8a5d7c28a3fa2683f0e6f03c3fbbab1c14fcd985b9bbfb60f3d4af0
MD5 51eb87905e15414598887c46b9cc6167
BLAKE2b-256 5fd51755433f37799a20a4ef659d5583a30deb1ffed3266b0761237d653eab7a

See more details on using hashes here.

File details

Details for the file pycglib-0.3.2-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.3.2-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6c0a870ba643b0597d2432cec2907c906ee42cccc41881dcb21adee35c93fadb
MD5 9f7971db2f3850480866e6f14356cc1a
BLAKE2b-256 eba472e44788e5c39abef4c2ff77f3662ae219de64c23ef31f8fec568ad083d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.2-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 2806b6ee686b51a6b7b66cccb3098a1b0bf5747ede221c5ecd76e23c8febafd5
MD5 101a674f1d6ffdb1e6b6d0bb86d4a678
BLAKE2b-256 7f7daeaba34626efab32d2b7162f8f6ad6148e827eded95ddb8cd6118ce29d13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.3.2-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 611.9 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.3.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8c2af2753c8d70c610f6572f3ce446a8e7969475b04b828d0abc45155be0e0eb
MD5 64e8ba7d3e973713a72f7f60f87652a1
BLAKE2b-256 d04781e8c41171d60239cbd8208b458742fe19555a2a6099ce921d3fcf0b94f2

See more details on using hashes here.

File details

Details for the file pycglib-0.3.2-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.3.2-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 094eccc376e8d62cc15b701c694d1cdf16f48b99ad671ce0ad53e18017a62648
MD5 db87b8a9a4a5cee34fd4c1585775c1e5
BLAKE2b-256 1b895d7145e3b1d289252eb19de4cdd4c7d0140ee5fae548a6b858f97fff61a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.2-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 737f3e7b52744477cf464c4b0f06e724a720788da8dc92030cd020d3be225763
MD5 34edce0e14b8b63a0593abc0681ba4a5
BLAKE2b-256 3e535ebdf1a02bbfc2c26b67d54feedb600c73a8f3d3535abf6f4d7f625da34a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.3.2-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 610.9 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.3.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 613ee9506a1d29c5ac9cbe9b747d6c73c0c1c711c95fa9deb128f4bf2efffdbf
MD5 adc4a0fdb12d4df2d315129e2a12eae9
BLAKE2b-256 0ab3a239af461899c1d8f238abd9df8fbee7341427f3265c9df2e8364f2fb77d

See more details on using hashes here.

File details

Details for the file pycglib-0.3.2-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.3.2-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9a65429873873e19483052cd4166264c08fb5424e69262c89bf68039f4155df5
MD5 cec88094dd2b9a7df03fa49cddb84c64
BLAKE2b-256 0ee5dbc77bbf2dd72de23a5a4bfdc4e9d0741b60437abc2b443ed634847c6c66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.2-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 d68847af783ce7f7a7dfb7dff3686efd55d4e6f322c0ac2b019325522799fcee
MD5 d2a3344bdf685026dc0bd87cce24c809
BLAKE2b-256 37e0a3900c5d00424844d722b99325b82031e2cd8c6eea672c467f0f54523963

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