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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.56-cp313-cp313-manylinux_2_28_x86_64.whl (950.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.56-cp313-cp313-macosx_15_0_arm64.whl (774.6 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.56-cp312-cp312-win_amd64.whl (345.3 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.56-cp312-cp312-manylinux_2_28_x86_64.whl (950.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.56-cp312-cp312-macosx_15_0_arm64.whl (774.6 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.56-cp311-cp311-win_amd64.whl (343.7 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.56-cp311-cp311-manylinux_2_28_x86_64.whl (952.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.56-cp311-cp311-macosx_15_0_arm64.whl (773.0 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.56-cp310-cp310-win_amd64.whl (343.1 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.56-cp310-cp310-manylinux_2_28_x86_64.whl (951.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.56-cp310-cp310-macosx_15_0_arm64.whl (772.1 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.56-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 345.3 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pycglib-0.1.56-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 213b10ea7a34c53d08aa76958abd78bc7442a0fe4f052e835a3dc4e1113628d4
MD5 103399f3feaaff85c965ee7fac676a83
BLAKE2b-256 7c33f74b9c6754672c1178b6173b0989e29d32d26660d3a13d92b2d4389793c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.56-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e06f65eae03b1c6fac857a50922311bc49c3f2447929c476dce17101af2f6a26
MD5 6302b4f7085df18019d3d96d8d88396a
BLAKE2b-256 4b7daf4048bfc81ccafaccc09d5ba1538399d0afbfa3853269290aa8bed809f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.56-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 47bb3856cac9c9045b352fae2171c5ab1a0fca98eb5cefb9d66229fc472a9012
MD5 1f5d10e334d49871ac10b9a4f5314275
BLAKE2b-256 a5037e12eddd2697c6d7b9f42f4343cc2bda10b1d3fd77c81d001af855afeb34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.56-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 345.3 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pycglib-0.1.56-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f6da297bcb5d400b6889702cdff628c1e2c0574156540d7de367946938dd12dd
MD5 f5f422f937a48b56382bc3d3adc13cf2
BLAKE2b-256 e08f4a0da2fc864595ac0b3714a0ef8af5521a018cac21732c722f219fa43cee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.56-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eb452caee40581611292789bd1987f6a1fe73ff5ed0073fa8183e3cbda752493
MD5 bc2edd48ef2e8a4351e8de552bf886b1
BLAKE2b-256 d69231d4164032f8c57c7d886d49bab4f881817bdcbd1473ad0991abeafaa35f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.56-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c933ace070e74b91c60ba9c7dc0ebb7fba9832a33f194c59f519e4d0d3537e8d
MD5 f40572297a6200c86d73e9143bedb24e
BLAKE2b-256 91ba748d4bda2445fce24ad9e040abbe570329c63fd68c6339612da5f7d184f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.56-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 343.7 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pycglib-0.1.56-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 70ea43e08690f207155d651e878406452490c212ef80390689cf079d9e80138c
MD5 da5676bcbd6a0ab6c088443710cdd975
BLAKE2b-256 6fe2608d94ffa2d9cda6dad5703833d7ee99455b35a4dd9ec536e3cb8640df3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.56-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9730602f041449c5b27c5ad0dde78b21019685ec0c8b994a1826ef819c7ea834
MD5 31a6a86530ee241e1ebc70fc6e28a290
BLAKE2b-256 cfd1020fda429dc7f70c9a70beebba05a85bf3d35ff4244d40f282636ebe65c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.56-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ca99aa01b44a988de287f14c795463a4d307aeb65484a4786c1b7b1954e81e65
MD5 5be952f45bb771d9efee7a2a828b4a8e
BLAKE2b-256 d47c95a6a003b9ce4386f42c4bf4b0e07c29b16d23e56165b23d5672b968a6ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.56-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 343.1 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pycglib-0.1.56-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 50b05e65e0d8260f04376eef2d119aaefacdb3606909453d779bdfdaf906b4e1
MD5 570fb440b2af0a471086adb1221e3d13
BLAKE2b-256 7d3cffbc6e5aec4f6fc1c81a5e31e8b507850690e7e84ef092dbe8039b6b85c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.56-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dc92de0eccdeafa438d20308e34485b9149d7accbfd054e6716026012ba2e4c4
MD5 0dff13e1ac4c6533a774862fb5ac995b
BLAKE2b-256 93e706659aa20e1ee637865f6a48e34f90811395ecd9687179c4cf59f0ad8dfc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.56-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 cba056c96f4f6b401315dbed4f74c7a35a17ece2135bdc64937f6d9899a538ac
MD5 39f327b457fb1ddac411cd0cab1eaff3
BLAKE2b-256 a06e4a1acd87c819070181e7ad45dc7b2f26aa06020d0620c3d1f6084c4e140a

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