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

Uploaded CPython 3.13Windows x86-64

pycglib-0.3.5-cp313-cp313-manylinux_2_34_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

pycglib-0.3.5-cp313-cp313-macosx_15_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.3.5-cp312-cp312-win_amd64.whl (701.5 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.3.5-cp312-cp312-manylinux_2_34_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pycglib-0.3.5-cp312-cp312-macosx_15_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.3.5-cp311-cp311-win_amd64.whl (697.0 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.3.5-cp311-cp311-manylinux_2_34_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pycglib-0.3.5-cp311-cp311-macosx_15_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.3.5-cp310-cp310-win_amd64.whl (696.2 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.3.5-cp310-cp310-manylinux_2_34_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pycglib-0.3.5-cp310-cp310-macosx_15_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.3.5-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 701.5 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.5-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1991a64a4ecdb9c97ac776a7bdf72c24d7d1865740ea0ef3d0ab06db47fd480c
MD5 5a2d6df8e739da5bc035f6ba15fe7023
BLAKE2b-256 3af5426274220095ef45db3b5ac891122af7f8cb53215fc9fd7ddbaa67ecd2cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.5-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 08dccc509582ef6af1ffc09ba18dd15f332be1a6d8e0fc59a87f7d5968616edc
MD5 c1525bc83da99c1359a255e934b4df8f
BLAKE2b-256 63bb0f17d6a58a08621a3de73070b0494dd39f02910a59a2f85a3fa720715d0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.5-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 dfb01e9bb55649abf8263e600e41e47aaa08fe98c9aacbe1b84fd22b9e6af64a
MD5 e06429ddb9795aa69b17da8afa2da105
BLAKE2b-256 ea6ae98994c1db4e8070a3344eeb539542cec9e86ea6f833f18b344f35657a5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.3.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 701.5 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.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bd8b023814a58dce1b366000f6e869985c6fefe3d25110b7a1af5ddf1beb66bd
MD5 9bb092f2938ffc3d607a3083f0ef8047
BLAKE2b-256 13d3f2e5a8a3b43c919c24cd16e6c52acb6ff14bdb82160be5995606d0499898

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.5-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c4edf50baadf46a31fb44a8161c195eddf0407ce9eb6c9abb8f23c10784976f9
MD5 5271be838bcde5af2c62a846eb40cd98
BLAKE2b-256 9bfeab498c747fd84a10be6e21aa8191ae26356623a0205dfef9963c21d9b336

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.5-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 2b876f0b339ab76e6c9daa59c820bc250d2cf3574d91422f7ab1d31c751860c3
MD5 a1f1127b5bfb8c5939ed556a217201d9
BLAKE2b-256 7cba14fa960753abdb99cdb92528be1d740013e49a69614df6f365894d111269

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.3.5-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 697.0 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.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 27753aae842715bbc5dddf5240ea698924efadd7aa597e3ec2e9eae097b43ca5
MD5 906fc532cf78179d477d6254bf69a638
BLAKE2b-256 85a03a1913e6e1b96ceb5abfb11b4bb9943a9db253dd292348f03173f8979e3d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.5-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 05bd04bfc91ed4e17e2b2701d920479af2bb7d2e0aef2591bed6f6d4e350b9c5
MD5 9c35cd9ba5f20cee051dc40b5bb301ee
BLAKE2b-256 842763432d8e0cfec2abadf5d5f8517b07c72d6e3d272e10f0f471ba09131232

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.5-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 1ca8e9026fb4c6cffb5df094bebee9ec6d62a4438babc4e99d6f63b872f85ff1
MD5 17b70be973e9cce65261362f52da6113
BLAKE2b-256 52b46b333209ccec7025caaf8c9237befed577a0b5efd3fcc96b6b90da0c8052

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.3.5-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 696.2 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.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7a46e9c1c48c2b954ef3e728fa2412064fac93e97f7d24038a56e3cf762fda88
MD5 fbe0de7fac0d528ee5169b2598db8395
BLAKE2b-256 139c74ed7094cc6e7e50c3728d66ecb4e2e603ae55f663ebbe19c1cc6967c5e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.5-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 222bb4a2c9afc73b85bbc34e7f2e3bede315ddda527d65ebe4baffb3394a5b3d
MD5 f9be626fbfd04ff22f46266ab1881687
BLAKE2b-256 e0bf06c5e299af2922dbb1e10ea74d2b98aa00f51a80412e0b1bbf24e2fa1d88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.5-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 9e61f3b9fea88d83fa3cb1ac8439710e81383eac66cd9eddb90ee9d6630be69f
MD5 7c8f79a54d346b767c5023bc9956a3b3
BLAKE2b-256 ea7c3fc1dbcf9934ea5618d4d67119523d02b682d9ac4e881eb8f5861b267040

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