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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.43-cp313-cp313-manylinux_2_28_x86_64.whl (800.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.43-cp313-cp313-macosx_15_0_arm64.whl (653.8 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.43-cp312-cp312-win_amd64.whl (229.6 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.43-cp312-cp312-manylinux_2_28_x86_64.whl (800.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.43-cp312-cp312-macosx_15_0_arm64.whl (653.8 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.43-cp311-cp311-win_amd64.whl (230.5 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.43-cp311-cp311-manylinux_2_28_x86_64.whl (800.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.43-cp311-cp311-macosx_15_0_arm64.whl (653.2 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.43-cp310-cp310-win_amd64.whl (229.8 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.43-cp310-cp310-manylinux_2_28_x86_64.whl (799.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.43-cp310-cp310-macosx_15_0_arm64.whl (651.8 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.43-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 229.6 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.43-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7d6d3675ab7dcf3242b8fd5dda56bf6746eaa8ea118602016d9782e5e29123a0
MD5 c62a288d0a8cd6643bf7dd19e2fbb98a
BLAKE2b-256 9ba038d891ceb2500b565741e04fd0d5c7e205d5836525fd3393246c4e4d3533

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.43-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6220567c14bd14836d3848ea9493445f2e50cf6f6eee0af2c1248997f40960d6
MD5 906831e09fd9a9ad38d7420647639c1e
BLAKE2b-256 f0bc96988d40ba68e84a9fc0f13aa80cbb4905efb60873033d5d6734e6fbd8f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.43-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 f0765e66f58e7698dedaab1db829cb5e3049d7e8ee4d45f29f4edd59634df977
MD5 d0f544a2e2da266c9ef96b6a9da03ba6
BLAKE2b-256 83293e431bb7556cd88fe7aaa9d4a85015d1d276edee0826373ae2a92906e394

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.43-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 229.6 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.43-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b496420badbd453873a82e002dfaccf8113ce2dbc428a946d01d48a39bec5af0
MD5 71e1db137143e2fc4add0efb748fe059
BLAKE2b-256 e34eac457c21bfd2fb60f2c6668c09ea1f69de6ec4f52b9b5b480b8060e601d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.43-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2d20f0ced59737726aa2b47815ce1e29abcb242150088525f20b77b2fee37ab4
MD5 718b49cf43208264d34c5da0e0d2034a
BLAKE2b-256 6706af9526b1f2bbb6b6a58c8238b99c7b1f0d91514972b414380a7b38d40a9a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.43-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 69b2c7a194961f25461620b9545369d7fb84f1d4d2546b527cd5f06ce6c0d9f3
MD5 a62be06c240d7aefb908015dc8f7f24d
BLAKE2b-256 2907dffd1ef8de61863614c6cb1a8ffd5750af8a098a0e0cd7eba8146a836eba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.43-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 230.5 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.43-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3e19844423de330381c4d48dec32c9b382b58ca394ff001680a7ea9c6f4d7783
MD5 11cd38e9541ccaf61e9cdd52f506cb6d
BLAKE2b-256 01f2153c4f5ef7e3708a321dabb1fb65e3ddbd051e9ed68e1e5c579f84c13193

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.43-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ec74bacb821b798015327a6d982f65fc2aff48a5bd81f3c9f06cab432123925e
MD5 3041b7fe9c71e1ef156e3f7792f3a019
BLAKE2b-256 299c4563c97dbae9e988b77b78a38b6e1e47e82fdbd9b9ed71b0e586592e1f14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.43-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 7c60f9cdd2c976d48a604e32aef86fcc5ae2fda02f07b2437aa0cd53f2c52ece
MD5 d01cb398ef866f34f2a804b2f2ae7dc8
BLAKE2b-256 f8eb93d074ca241473486ee97a93975a3b5bbe5091f7a23dcd681c5f410a1678

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.43-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 229.8 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.43-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 65bdc315cb565218bdff00d64d48843019461db0f9ed1e14d271a0caed28cc0c
MD5 a4eaea1bb8369e142db750838c0b6e44
BLAKE2b-256 9c4494a61e1639b89ccad61782050109053e0d169f184a8f2901cd68583430b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.43-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ab72b71adc3b31fe1a50450cb29934b8834f4a56a187c3be90ed105ec8f56086
MD5 9d06d1e30bc9bf87f24704de00bb47ba
BLAKE2b-256 1b84a4a0dd74d0a1ba55e1dc82893be2c8f0a82120efce4849c12d6bdd6a6eda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.43-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 efda1dc17a706d4f3087bbf6e14599263e76b57bb020e66828c8977b37c66a2f
MD5 025d93d3fc836b5ac9406c5ee8739a76
BLAKE2b-256 222cb44b05c79baff6ba6d7437e223c3ca8f375a711884d7b18919285cfc320a

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