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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.52-cp313-cp313-manylinux_2_28_x86_64.whl (899.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.52-cp313-cp313-macosx_15_0_arm64.whl (740.2 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.52-cp312-cp312-win_amd64.whl (310.3 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.52-cp312-cp312-manylinux_2_28_x86_64.whl (899.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.52-cp312-cp312-macosx_15_0_arm64.whl (740.1 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.52-cp311-cp311-win_amd64.whl (309.1 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.52-cp311-cp311-manylinux_2_28_x86_64.whl (901.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.52-cp311-cp311-macosx_15_0_arm64.whl (738.8 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.52-cp310-cp310-win_amd64.whl (308.4 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.52-cp310-cp310-manylinux_2_28_x86_64.whl (900.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.52-cp310-cp310-macosx_15_0_arm64.whl (737.4 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.52-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 310.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.52-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4f3080f376d4e19c3b0921ece24af150a58afe19fd19ff2f4de7b08cdb03be61
MD5 0ab693335018f34381738fb16bc52bcc
BLAKE2b-256 ce9eea03e806b1068a872a14a007de042aa73be866dd084ea4b4e544575756f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.52-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4aeadfe69c3ca6e919b3326eb66ded61e81c5e79eecfd08f67fe893f53ec83ad
MD5 422428943be1244d1ef8515d8024b940
BLAKE2b-256 198c2a27088d1c10c8e0faab4bcd1736fd9ebc7c27a5e241cdfa7b6a1d93bef0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.52-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 5bf7bc96a4ca6e9e1f5c045c5a933976024db74ccfdd3e5ec8e52c21c3dcd100
MD5 475ab629861966f85d47345238b73ef4
BLAKE2b-256 01591d75f3fbc2ce7a7fec8f059cb610931bd34cc381ad1cefeb05f96b81d376

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.52-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 310.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.52-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 db6308722f43c2e2bf57d04ca576956ff5bdfaae04a01fa2857cb4514c57ac07
MD5 ce14b464a765c3a1f06eb9a24b719c56
BLAKE2b-256 e89a93f267321d9c23e79d9172428aafc7e9f40fe8e40ef14031d234f8bab258

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.52-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7987a7e1ca8755a024432fc2899dd1198ad332a10f133bc1f378fbb140a42dcc
MD5 85f8daebc30d126a966b6946e13d6d57
BLAKE2b-256 1253f99235c4a80fd38970d4079eeb59cfb719e50b273a5d233698e4939c082e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.52-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 45c6230f57e4f945eb1443cccabc3864323561ae1b4976fe65861b6278181b45
MD5 de59e7089df4908d33592268857fa87f
BLAKE2b-256 0bc890ba7ec076621af9f3829c098779115ed82c06277a3e16a007db2bbaf164

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.52-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 309.1 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.52-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0babf998f288924ef8c5e1febc6e6f72166854d64f46a778b7f4c45b29b3e02e
MD5 2aa9270f9c27c17bee02c2773e29d5eb
BLAKE2b-256 6654cde1019b305cce4738351c0b9278e7323664204902cd5223a9970420bcb2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.52-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 37e9a9ff330c463e0855e31cbf9b7ceecd1198eb222c9bfaaffc2c3b5620a4af
MD5 6f9a82770e493229529551fa4d477839
BLAKE2b-256 8a76a68b39138c5cb5ca3257fd965fd40d073700be9d691c55272f4b7fc1889e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.52-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 fde2289a34436dea2cdb22bd2c319f0c7860e0e7bc2a60371dbc2b873cdcf51c
MD5 b197603aeae52081b718a7e49b821fd5
BLAKE2b-256 9c154fb0501ed14e2faf633f5aa1590ef521e1115157d129d9da96a2dbeab93e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.52-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 308.4 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.52-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e9868062301107649475c86cd0ec034e79398dbd47b7cb42492867cb33036a8e
MD5 1a6c04f0ce5689193bccabfe08c3d0f1
BLAKE2b-256 4439ae6534be36b00adb7bde36d1e44df3ba60f95f01a57b8eeb168afaaee45e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.52-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a74e86538215eef7f48c68b8be2d8376a5e65d4a28febb886cb5877d496b6d67
MD5 c3cd7a726337e5fbe2e85a9de8c23e89
BLAKE2b-256 d5fe59ad019d998d946f6974dd2d43f1b3999aa5056c188148723be0921ce990

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.52-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 d16130c760541048a7ff38ef55d0f90c5ecc2c89530670b357432275e3f01b2b
MD5 7d27052a4abbf393d972232334ac2203
BLAKE2b-256 6946c759d5db505ee0cadc5e7d752c5495dc554e4b2e3cb03f6c46f5d3d1ea78

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