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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.49-cp313-cp313-manylinux_2_28_x86_64.whl (857.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.49-cp313-cp313-macosx_15_0_arm64.whl (705.9 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.49-cp312-cp312-win_amd64.whl (272.8 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.49-cp312-cp312-manylinux_2_28_x86_64.whl (857.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.49-cp312-cp312-macosx_15_0_arm64.whl (705.9 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.49-cp311-cp311-win_amd64.whl (274.8 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.49-cp311-cp311-manylinux_2_28_x86_64.whl (859.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.49-cp311-cp311-macosx_15_0_arm64.whl (704.4 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.49-cp310-cp310-win_amd64.whl (274.0 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.49-cp310-cp310-manylinux_2_28_x86_64.whl (858.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.49-cp310-cp310-macosx_15_0_arm64.whl (702.9 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.49-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 272.9 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.49-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b79096b835bfaf761c2a888ee7dd2657629486bcde2ebf45193489c1d045fcad
MD5 49ab856408d13feb995203364cb81332
BLAKE2b-256 b5ec68838ebb0eef88252a0d698655ad794acc417a24fcc5dac0faf5eba8a0f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.49-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0362957f491fcaf95bf4c8f1f64281f0d8b1036ebe57b00dba379be7e7487296
MD5 3144a216d1adcaf56c376dd3a2a7d851
BLAKE2b-256 62e69aad993836d9b3028c901f5b5b1b99352a05fe1554532cf7accd1408b0dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.49-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 66e421999c2c0578ae695a5ba476a20625b183f0d05207173d4c911e6e2ca198
MD5 86882cdf775c9685b851be547b063dc4
BLAKE2b-256 133e16fd9b71e254aa87001eeee0978a52d42d2ea771bb465eceb06b6c39a485

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.49-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 272.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.49-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 504b6c883bf148f108c1c5c25bbeda3b769f7dee3dcfe07184da6cdaf011f039
MD5 1773581e112c6baf0b726a1c0ca30d04
BLAKE2b-256 ba6995673943be6fa8b299143840719425b5cc7ba78933d5b1920c69e3a78ba4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.49-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4ac21569bb808235df1e82f717d5231bf501009202933a8b29b8147f0a50a72b
MD5 77bbedee95c137014022143bd92bac07
BLAKE2b-256 eb06926e2e434ea954ad6a26ace44233a8a351d8a5662d4a6b4a54224eb7c5e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.49-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 bff02468c851f838a7e344e3eec0b82adb14bb6c00f3c031d38b24fe1f219c1e
MD5 f357275a1740f8b58ccb70cd8190f7cb
BLAKE2b-256 c708eabfd989bd58d5b91e97481897d0c88d8001e6d93db01ba2c9b62b219cd7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.49-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 274.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.49-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 836a9b4dc9835e7c9c2b14826c50f0767c8ff052eb8589a11485f220e39dc3f4
MD5 20abaa11b2bc0947cfc47866f600cd5b
BLAKE2b-256 06f3e4fbb9224cb1f47c4739c8a7d1fceec2eff09222ab10cb1999af038f4dd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.49-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c6ad72da26454e34e335b8a3a21668c92256690d144b18bc9ef5827073c235e4
MD5 73eec99dae8ab925257460598e9a4fb3
BLAKE2b-256 6d5055b2e499c73daf84c45d5ae6e09afd6710afd411a171f9e9367d30bf7391

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.49-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 2597bfff068f2f8d8b8b0892f6f7b3f9f8f9002b554b9a9f2c306a93f247587f
MD5 ec18f7347f229b94e8ab72cb8088603b
BLAKE2b-256 0ce06b59885f92efb01d643d21102d2b308ab8bdee881c9e92c83cd6af6a6a56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.49-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 274.0 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.49-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f325ea5c6cd7bb9a45498c1d94e3d5c65d859025eda3ed7f15acc31be6a46b36
MD5 2f61c3097924639497539f71b8888a2f
BLAKE2b-256 55b5b3a92f950192ef2d900854f9ea51a66e6c503a00fcac95aaf355c87808da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.49-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a78eb542ca91bacea6d11f1e17187d5190cf022492a940394c850f9ea126ae31
MD5 fc61a13bc59954d95a871373c9c2f584
BLAKE2b-256 e8e2a0f752da082c36ba847d186041d9da350d1c927cc48a1447197b3769bce1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.49-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 69cbe28b1fd926456d5d71aee7c629d15c15e7d72d2cbf7a645b300c9a213141
MD5 ec14dbb833b423ad9005e57707d3be45
BLAKE2b-256 e070c6590b04505b52f1a1310f91d7de26aa2e7a4d95a301d332a1cd6fd19938

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