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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.32-cp313-cp313-manylinux_2_28_x86_64.whl (702.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.32-cp313-cp313-macosx_15_0_arm64.whl (577.3 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.32-cp312-cp312-win_amd64.whl (159.4 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.32-cp312-cp312-manylinux_2_28_x86_64.whl (702.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.32-cp312-cp312-macosx_15_0_arm64.whl (577.3 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.32-cp311-cp311-win_amd64.whl (159.3 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.32-cp311-cp311-manylinux_2_28_x86_64.whl (703.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.32-cp311-cp311-macosx_15_0_arm64.whl (576.8 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.32-cp310-cp310-win_amd64.whl (158.6 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.32-cp310-cp310-manylinux_2_28_x86_64.whl (701.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.32-cp310-cp310-macosx_15_0_arm64.whl (575.6 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.32-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 159.4 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.32-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b91fce297ef7120454c4096c40fd4ac05094b805b054804d9249084270fe3d6e
MD5 e6429501e005a5d867e43617c5060a54
BLAKE2b-256 4b02799ecaa2ebacc53a09616968a8462d6787af63f4aa58ceb377e415135de5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.32-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e0d9ba3397604d4557811e4e05a5aa9459c4b2a17e6b7f1cdc919a7cef255d89
MD5 e834a3bc06f8b536220e7aadafe24205
BLAKE2b-256 a0fc1539f5f66f72e6eee98be09e194703b3c27887fd5f0709ef5f0fce452b4e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.32-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 8482118b1481b8b22a636e38883c7b47ddd4b36ddcf7beb8f90b65ef9919be12
MD5 9125ad8a101936d4d42ba568ab4c06f8
BLAKE2b-256 d07c75b0e0325b8a295dee3de12d94f03a5aaddba38a119ee0e4cbdf5ed0e6b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.32-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 159.4 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.32-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e6aa763500da7e1d335a58a7f81ed88b2c07e5847940b5abb814741a80b85793
MD5 b39a2b34067cb6207eaeffb9325b3a42
BLAKE2b-256 e20d97f3a0631785518a2ebb9b417d7117d1cdffc2eaf981bb070848145b938c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.32-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1c046acb5dfe0ebea15120464d0d505fc35be2b824f75add88b071e85dbd2ac1
MD5 c441fabdcc020ff9220c61a72473e707
BLAKE2b-256 d0180f1e2996dc523048d77a0c67fc88a714aee9f9fcc06a5e54c67e9f9eca8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.32-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e06bcab9fdbfb56fad9a8c04254cc0d41fe832750aafa59e55a4359108becf13
MD5 909cf68e405e906440c09eeac826e8b0
BLAKE2b-256 5cca03dc0e5e751cdae7d69d0ea6e2b865cc11e99a29365f3850dcf95fb71d81

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.32-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 159.3 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.32-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7bdf9eab4a304c69cc2e4f50ac9e6c31f1c7941ff6908256a351b0856978987e
MD5 aed99b5c0848c8459c206b619b37b55b
BLAKE2b-256 62e8f8676caa839dc62409c104ff7e0e7a667fc7645eabf239048b5124382c81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.32-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a3188855adc9506c3f09092950e5675875a6b456cc4724c1911a860239341b4a
MD5 32b893e0a4d989949d80831b6dabf4d3
BLAKE2b-256 451ed800073de59417934cafba89f805a9d932b895f34ad724309a96295397f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.32-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 3888cf27d7461a07331dfd864a37b08fec4ff485b15e2a4a7fea75fcebb2a971
MD5 88308a0e39e0fa145cceb7ae63989abe
BLAKE2b-256 476ea30222a11c6efae2d435fcae64e510686ea3e9bf2ea75385c91428f12dc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.32-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 158.6 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.32-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f0c046dc982a21a72e8a0509594835200bda7c4c9e76e8e14181c4c3b6b7d2ea
MD5 cef6eef3faef12db5466e99f846c72bf
BLAKE2b-256 10d620bf160f8fa9df7f315007ba309c8cf6e489229be17bd3f8c69a955d2103

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.32-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b82010e7c290c3d573837a2ed18422683e2e203800fd7e8d6858d63578896860
MD5 2c37ccad432d1154fd3d7a93fd0ffe50
BLAKE2b-256 850eb40001d95b32218eafda87564c65fbb47965630295e4f9d74e6790c369dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.32-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 d440fa9356332342bd67fc4a58f6c96af9f70ea41d3336393a2461b0bc3d3f6f
MD5 d004b44526e9c436da6f22929e435a61
BLAKE2b-256 f9e8e3b0adae5d032df7177010d4189a7f6d8b64f32a89c4d179ac74f74673f4

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