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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.58-cp313-cp313-manylinux_2_28_x86_64.whl (959.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.58-cp313-cp313-macosx_15_0_arm64.whl (780.6 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.58-cp312-cp312-win_amd64.whl (351.8 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.58-cp312-cp312-manylinux_2_28_x86_64.whl (959.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.58-cp312-cp312-macosx_15_0_arm64.whl (780.6 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.58-cp311-cp311-win_amd64.whl (350.1 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.58-cp311-cp311-manylinux_2_28_x86_64.whl (961.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.58-cp311-cp311-macosx_15_0_arm64.whl (779.5 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.58-cp310-cp310-win_amd64.whl (349.4 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.58-cp310-cp310-manylinux_2_28_x86_64.whl (959.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.58-cp310-cp310-macosx_15_0_arm64.whl (778.2 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.58-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 351.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.58-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ebf815da013971e29598b2a1472e49870a2db423d31a9edc2f24b9d1c2917485
MD5 f2c1d4ac4860237025380a4554a9174e
BLAKE2b-256 f4bccd95c86bf7fc2463a0e814c694e3a9f9c76016a2971668ae1e6bc4ee0ce6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.58-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fcf632b4c2bb5728cc9690976584a4d29195ba15e020eced9fff1266c54f8ecb
MD5 ab71e392f6f8a63bcc88f66f30b38b50
BLAKE2b-256 18ebe287c555ca7fab99a6a44409cf3a850744d64f3b9b0e78e8b846fd2e2f22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.58-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 2f1ac32f04364ebfe14af9ea4d0f5aa07d0e31f7b2b1af8399eee4d48936c981
MD5 a46f4891fb9b00d791d5521ba4861468
BLAKE2b-256 1c02b33ef5d807d5d609f85565948801018932873aad39342356f7e39c1f8cfb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.58-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 351.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.58-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dee1debf31b65df3b2a811f1f79026ba5d51284e019987dd591d0f3553556b89
MD5 66c47d9e979b55c4219b3efa8def0ed2
BLAKE2b-256 69b03b47476d029dc856431bab04633d8457467b9eccfdd24f32b6f8efae1e27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.58-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6c2a8fb65570c3a7ffc97770f41ffc8a1f08953620ce7067e8a36966af23d8a2
MD5 083cdc1f29bd115457c40a93bbd8f6c9
BLAKE2b-256 25bc470231a2455573b3f53b9ccc6927cf1e2a8bdc707082282b505fb75856a0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.58-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 af67a9a0159ab2fcaa9e4dfead507eecc47e59cad9ee094bccaaf7048bc4928b
MD5 fe876f2eed8e662567c8d1732e29e4e9
BLAKE2b-256 6c4b097895664011251d58cac9b52ba3a5e142f63129b93eb2be6bfda916e9ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.58-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 350.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.58-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f1acb0965c322431b104823b4d9dffdad5d7f5a3acab1b3d336ee67ef5b04ceb
MD5 7c436051147bbd7e9d3aee9604a807e0
BLAKE2b-256 64e4b4ff78c7ad924bfb91e74becc517b6f915fe8c58a0400cf7f9883def9e4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.58-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 460d7041daae1c29be6978a32bc36e78463430d650787f2a4562e69c98ccaaaf
MD5 299246d331efb27c08d6a465016e21a6
BLAKE2b-256 fef64d230d041a581039af6e2c97c8f7f85f0763f66f821fa244e25f64a7286c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.58-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 8dd093ab4d3f98a90f03c3ba4e603406b01aa6fb99345108080a9ae1e01fff81
MD5 1611cc27830c4a8d1b724d70bda3b0b7
BLAKE2b-256 916d360a59c866da5bd40fb03ac94b2d23b6757f03a1c6f2db47e7b0db41ee71

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.58-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 349.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.58-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cdb7576a625856e8ad0bcd5c6722c1c235dec8851fe06833189bd61815757736
MD5 a2678bcbed6b9e4ad1ea62b30b2abd05
BLAKE2b-256 98e4ac2ae6311f0bf750335bfb8eaa8ecdd3ca5480951e649b5bb13425abfb7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.58-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3e76246dfe43d1174dba40015517c2bded8cb2bbf0618f9597fe76eb34b79d20
MD5 5d14cb188902493a28b4fa05531e651c
BLAKE2b-256 6f7ec6e031d84a61af6d8c548bedd440f6288f67d0f445fe27911ab96be36484

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.58-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 b61cf99af765f43405d3efc1603d90c339a7e43173a51080989836d4eec06bf5
MD5 862a3b2f183ff214757ce2be558b9e3f
BLAKE2b-256 d3c16e68dd090c2c08247f2890960d5ac7140e2dc2d81c2cf89d682a05ab62f2

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