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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.53-cp313-cp313-manylinux_2_28_x86_64.whl (910.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.53-cp313-cp313-macosx_15_0_arm64.whl (747.6 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.53-cp312-cp312-win_amd64.whl (318.3 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.53-cp312-cp312-manylinux_2_28_x86_64.whl (910.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.53-cp312-cp312-macosx_15_0_arm64.whl (747.5 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.53-cp311-cp311-win_amd64.whl (316.9 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.53-cp311-cp311-manylinux_2_28_x86_64.whl (912.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.53-cp311-cp311-macosx_15_0_arm64.whl (746.0 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.53-cp310-cp310-win_amd64.whl (316.1 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.53-cp310-cp310-manylinux_2_28_x86_64.whl (910.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.53-cp310-cp310-macosx_15_0_arm64.whl (745.0 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.53-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 318.3 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.53-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5b00d2171a2e2577841fd7838bf8594a725511e27b952b604fc92c9f8ca07e6c
MD5 931eea441f7463cfe08ea4a95c34b0a5
BLAKE2b-256 bb4f22523057b7795e6730603a6b5794deda4bd7a01b0d6eda362c3fd4696fd8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.53-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 614e2f136c14b1c78c9a500d4ec81cbdc0192cd6e76bb1961d7d507899f47ba5
MD5 4056e8a97c9c687e9c477df096ad837d
BLAKE2b-256 86b23e1fd85ca3869193417e043578417265349dccbe57938483a910615c6f51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.53-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c470d437e85ec64130fb608f7229c660612ddb21c706ed5067f658ee72407d6c
MD5 d08a489283564a4ad92978c6c0f6e94f
BLAKE2b-256 9042f52c95176a5c59b99c8c66e567770a8387827143cb9e14f1bbd094ebcb64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.53-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 318.3 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.53-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ae35fb3a11c31e67d8d77dbc352b670fd7162f637fa0078972991c1ed00c7a64
MD5 9dba1f52c18b8c68fbf6c7b70a42003b
BLAKE2b-256 b1101ea91021713733a0513e59ebd3ae306b79839ede9a0cd87891820ab2abb6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.53-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c0087d4437dc7efd11fada264fed800e4be9e7b1e4b1524e003e8b0b24267bbc
MD5 cd78e9bf6e2364b7a6e4a1d39d567af8
BLAKE2b-256 2a4bf2211a91b4de7e231fdc9276f00f0f4f818786e0e515d164108492ac5e39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.53-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 4f2ca9dffd93834dee82741d1ac2e0283bb8c04ea234d64f372f386e56e5a3d5
MD5 46c15faa88cb053653eff044d6e95398
BLAKE2b-256 36b198fc8ad81bdfefeff03edc69202005e7ea413863b429620d8ea3865d4bd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.53-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 316.9 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.53-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8906a77e6a85a2a8e2edf0c24a6e7d3effb34925b88661303219f6bdc316e888
MD5 d666def74970ba54f78f111fa510e850
BLAKE2b-256 c15e80196abd51dba35c3bd451f4b0e203f1c2ef4da2b59f7dd4acaed3a6165d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.53-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0309a7a55bbfacd1725de2f489b39191098d3fe994bc9f90d079907de06956f2
MD5 3001c6bacf1e92e7f7ae0e5abdfefab7
BLAKE2b-256 7b8501e168e75e40d36f470dc2a29d0e687c0acc2d9b51764fd4284ff4afcf44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.53-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 4e76a31c89c4885c3d0102334dc51dc4df3015de013aeeb8d1df97d375996915
MD5 27522474290a323db59f68fd24df2957
BLAKE2b-256 6d5d7fd966dc3e1b1ddd0a8f16b9c8050c29bdb90ab812e2cdd47ed1c5ae8e7c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.53-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 316.1 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.53-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a6195983ea464e6b686fde709c420222e126d3e6907c013546eddcb3d66e8f8f
MD5 c86a86621bae51c10596c2771b594330
BLAKE2b-256 e71faff3019dc29ca299cf1cdc47f7b26d74d0fd41e2da4d79742178c7ad4bc9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.53-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4a9c012127da2ab4ded0d3de38ae793bc95ed253232020c3f281b7c9fb516b28
MD5 2c390e046f2deb6f0bfff9e364db65f2
BLAKE2b-256 7a597ecde837aa78a512e90168ae95868ee6ce9f05b2c6f489f10eb009e529f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.53-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 79d42697f8279f7f13ac3e83a329507c97b1ef4f50b264883564eda8ac9e20c7
MD5 42bd714bf7f7e170f2ee7af9e3fb2c41
BLAKE2b-256 477a2dd3e80d5d8fcf46226428c3c9b83630c13b8c4ad8f61a64d0114cb802c4

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