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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.40-cp313-cp313-manylinux_2_28_x86_64.whl (780.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.40-cp313-cp313-macosx_15_0_arm64.whl (635.3 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.40-cp312-cp312-win_amd64.whl (213.7 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.40-cp312-cp312-manylinux_2_28_x86_64.whl (780.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.40-cp312-cp312-macosx_15_0_arm64.whl (635.3 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.40-cp311-cp311-win_amd64.whl (214.8 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.40-cp311-cp311-manylinux_2_28_x86_64.whl (779.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.40-cp311-cp311-macosx_15_0_arm64.whl (634.4 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.40-cp310-cp310-win_amd64.whl (213.9 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.40-cp310-cp310-manylinux_2_28_x86_64.whl (778.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.40-cp310-cp310-macosx_15_0_arm64.whl (633.3 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.40-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 213.7 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.40-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bb76f9ff2b73124755da0afa103e451734370518187746962f8c0e3619388fdd
MD5 b455b1a7d0730fc4aadae7efe2156b5f
BLAKE2b-256 9d72b3319c0a18c42313fd24187326747b37c3d5fea72154b7bdd7511deae16b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.40-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dddaef20d88caa26001bb3ad42dcc8153e30db886e5b237b90866a38db7eb2aa
MD5 2ce10f996fdeb0a3fc1bffc600b68f88
BLAKE2b-256 1a4d1bf67b3ac428e2a9d6e5b8cb17d5093499028521b4fef9a38c3540f7720c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.40-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 0125346936157452582c0f0a2f870de131076587f0e76c67c70897c78da09627
MD5 744d15e18fa41a765f81ba19b9167c8b
BLAKE2b-256 b07f1ddf88ee4d5a4910889ea454a648c56fd1546c80a9be1ce4de7ca5f6f409

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.40-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 213.7 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.40-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2ebfebf9fe22bf41f9dfb8a8bcbfee73fa7489e6e0247c4559fbc62802a762af
MD5 31f49d58206ae7711021152f545f5d3e
BLAKE2b-256 4323f11b7d6e49073bfdbc06900f6446e9fd00ec73fb25754641fcb63b6b07e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.40-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d60276377a1a31c63c3d8ff9ad06753b279f2728c1419f2e7c9e5309350b3209
MD5 9b63ac9269ed918c3bab710e5a4c7cfa
BLAKE2b-256 fcb450c81430bd729c5f8e7f7b3077990a62697375d3b35d2b3b8b2fdb876c3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.40-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 54270c75f30573f2f741b3ef63cb4c211f9052ae0160e66769d53aded31984b4
MD5 92e04ad68d978f47674a41eb789a8134
BLAKE2b-256 41134d4cce096bcd6ba3878d848980009191d0d5491a89ccdc6bcc07bdd674c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.40-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 214.8 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.40-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 aaf909228940c87f88e57cb930e41aff81bf04142322f3aef1019ae2aadb2803
MD5 50871341b9300e2b8abc10a1faec6e42
BLAKE2b-256 55659b922f48b08350af435ac4fc987d2ccba295f9f5dff50b114aa852f5b118

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.40-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 483be9d3079c0b10e84f9d1d5c529523f7a9ce5d84924f19ebe862ee435d17d0
MD5 9be3c1a110de4d04df4075fe4d59f3cc
BLAKE2b-256 4f09a7557ec933544afce0a21f0ded68e8cca740fceabbbe3e05b214d87faadf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.40-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 f848d0cfb82ff9197ad14f7e885089c36e5cd244d9eaa08658e80a77f7c76d46
MD5 84790d9fbed20de18aa6280a548c6f1e
BLAKE2b-256 facbfc43c3c8c06c2fbc3dda3cc1a2dd215f97d09a974be4d29e7e5d79684a10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.40-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 213.9 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.40-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7b649ec1cacee1c0c9629c9b1a76a84cd24b8770ac58cfa8b2f40014324b58ed
MD5 745e140394b716d5c5bd2b9af1cfb524
BLAKE2b-256 220c6417a90487210cabcc176e98abb912e0848fd5e133ef286778c4396527ad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.40-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7bc082e3f61096a0c3d83d48711b7ba97d1ae3d2ff85fe0192494a75f60b9e74
MD5 eb54e1bb352002c8638bdf9a301dbcd5
BLAKE2b-256 817c94188525ae7118ef07223025831d8efb6d1926a6d0997459858cd04360de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.40-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 b14da149fc1a0a21278a5caa8f15ff945eb5e1d54a808b7994e82328ccc618b6
MD5 9a6a09e51afb2a11788c83e8cadb1be8
BLAKE2b-256 53021e8f5fb4aef9c9db158fc3582f45177043a7d997e5e531786869daf3fa7e

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