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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.30-cp313-cp313-manylinux_2_28_x86_64.whl (683.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.30-cp313-cp313-macosx_15_0_arm64.whl (561.7 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.30-cp312-cp312-win_amd64.whl (145.8 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.30-cp312-cp312-manylinux_2_28_x86_64.whl (684.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.30-cp312-cp312-macosx_15_0_arm64.whl (561.7 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.30-cp311-cp311-win_amd64.whl (145.1 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.30-cp311-cp311-manylinux_2_28_x86_64.whl (683.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.30-cp311-cp311-macosx_15_0_arm64.whl (561.4 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.30-cp310-cp310-win_amd64.whl (144.4 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.30-cp310-cp310-manylinux_2_28_x86_64.whl (682.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.30-cp310-cp310-macosx_15_0_arm64.whl (560.3 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.30-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 145.8 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.30-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ca7207c0e4c7c460337a006e8cd303c4666f5f5744b6450591828b1787f31738
MD5 8d86e0e81bd305e810ba68bb08b0ab5a
BLAKE2b-256 1dcd70ad007ffc0015e9bac6f119d05e7cef2378f03533e459854939b93c417d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.30-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cffd5c232a8e294a986dfbc4dfa19c5d6f0aabda5d8c11789dbd21ed5a346f71
MD5 91929280d817cd5e5ebdfe66e2fd07df
BLAKE2b-256 6953a6c17cb83060d2cd12759c69e3875972c233d6c640a1d7c8eb7267d4b182

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.30-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 5d2dcb04e39fd8055155a3dd753847c9be647e167512d6d63bfac01418cf67ca
MD5 9ae4f86b47af1de4560abe1f61b0d86e
BLAKE2b-256 d3d94cc26bf519e613b9aca4888e9a942476e2b016e8c56b7fb9da1737fec3ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.30-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 145.8 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.30-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c69c4390187e175de40b897e10479c6bbd85099a9611826e511ff924874cb35c
MD5 0895b5374b2a222de882a537893618f1
BLAKE2b-256 de0a215b4c4114e125581c4ec7084983bef6ce5855757ff6cfc9aa52990e5647

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.30-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 62bc868cc498478305f69bf68a28feb88066cf2470acdc86c2c4585b9be18a87
MD5 4d56700568b435f0477fdb736532ccf9
BLAKE2b-256 4ed6dd78ac3bf19d8a3a9fdb5187709ca4f348cbc1819eaf7d161395e7766535

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.30-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 49d95c30fcd18b514def461b15bd472054f29a25723ba9fb5876f41c8742fb7c
MD5 bf9e7b83e8feabc210c79c57902d3ec9
BLAKE2b-256 75eceade4b29bd0d357224dc25e1ca52690e1b348e251cec7008e39f108c500a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.30-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 145.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.30-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 80d7e88e77470a650ab4d8b223321cd2ddc061c0c923ad5e5d4336c6ed7282b3
MD5 3808bb74da57adb18cf3ecc691a4bcd6
BLAKE2b-256 ca997643da86d300b8116fa4a6cb92720c1d792883566c83cb53d3eed908f566

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.30-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 60ce4e6c0d2ca35b8bcd9ab2325e74ed908af251547b262b0fe293f7c54a58a3
MD5 4cc6c9b4fb285f3d11b3b17bd046e8bb
BLAKE2b-256 b51811d2a29ca71d2825202bad86e24d535402401696db1604a9719be50442c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.30-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 42c401652b31245c2f96d69ee09f76a30167df284c7c2bc3f2ca4dcde2b9c1a4
MD5 9294d73235e02b50e19d673c450ffa9e
BLAKE2b-256 b844d3dd38b4e6f95ad542c2976e6fdeb711451b248efb1336a1c4e4ef400847

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.30-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 144.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.30-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 83b7e25a68531ede26c33a035c788a9ac0ab15da199a8ffce022e5770acc600d
MD5 1e53ff19110529517e5375792bb2f8f8
BLAKE2b-256 d71b9de58ccad0aa626b9b195bef569141baa826cce9dcae28cd5a2be1404acb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.30-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1a50adcf82370f3383ddc8d2d4ab32a0d45efd5288c3cc2bb7a0977b48ca365d
MD5 8cf684aba356e4de9c880a319960e686
BLAKE2b-256 25db344cb5044c89a9e2c82edcbb68ac0a816c2b4116da1697f9a52acab8f156

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.30-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 2cadfb81f9d20c2ac110203d2b976b6cb34494cbc3654fd5f55966c9be96b182
MD5 3abd41adbf82ea5f71c4e5f9295c11d4
BLAKE2b-256 e385304ce857449ecc27d5bf2b13b85bf03ddb35d14f195d7056811863c82d68

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