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

Uploaded CPython 3.13Windows x86-64

pycglib-0.2.9-cp313-cp313-manylinux_2_34_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

pycglib-0.2.9-cp313-cp313-macosx_15_0_arm64.whl (932.5 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.2.9-cp312-cp312-win_amd64.whl (494.4 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.2.9-cp312-cp312-manylinux_2_34_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pycglib-0.2.9-cp312-cp312-macosx_15_0_arm64.whl (932.5 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.2.9-cp311-cp311-win_amd64.whl (490.9 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.2.9-cp311-cp311-manylinux_2_34_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pycglib-0.2.9-cp311-cp311-macosx_15_0_arm64.whl (930.3 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.2.9-cp310-cp310-win_amd64.whl (489.9 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.2.9-cp310-cp310-manylinux_2_34_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pycglib-0.2.9-cp310-cp310-macosx_15_0_arm64.whl (929.1 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.2.9-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 494.4 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pycglib-0.2.9-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7ec5e397a31d9f30c14f02f18036f0e02ff94f7bc120683ef6001ee7ec5e72a1
MD5 599a3592701b21b74575b263499da3c9
BLAKE2b-256 f9d51acd020a7fba2a2f952fa9f46577a34a138b2a09c0b7cc291997aa9cbb28

See more details on using hashes here.

File details

Details for the file pycglib-0.2.9-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.2.9-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 168aed2ee4f02ce9c69aeab2db3c4dc38ad66c6df62b70c491ff90ecedc2cc0e
MD5 e893ae4f4a5a258b80f43fe5f190a686
BLAKE2b-256 6b583a47ee020d2032f076d0dcbbf475c11017b0af28b36371728bb2d8d24a27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.2.9-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 447e279a97d43021c596b192e0c79d6c6c997aad1d042bddcd74cf38ffbae4dd
MD5 6463c88411dfb5631dcd98ed99a89141
BLAKE2b-256 fbee33c04d5d59b007c90fe0b25ba38fcfb4001b625c4233c8c5e51e2d1685b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.2.9-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 494.4 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pycglib-0.2.9-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8e86beb125db64e45248db27eca195d70c8d6610460651d766763989f64155a8
MD5 8ecd4f2836a89fdc2641838c4ff8bcbb
BLAKE2b-256 a70a187444daf2fe5acf80e0e812e3311f21e933dfcfa081cb675465d5028dbf

See more details on using hashes here.

File details

Details for the file pycglib-0.2.9-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.2.9-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 7d2241535609f9953a82c47d15c448d4313682c9c5251182c2b83014dc12d322
MD5 d3df1b3ab60cd2d638d6c5c8aa5527c9
BLAKE2b-256 dccaa987db05fa2b9cb161a27c7f61b95d2c02404ec1d843af811ac30ecc2da1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.2.9-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e8ca5115aa8ec98e606cbb243ef8fbca7941ca1f6ab5a24e8b8803c88eccf065
MD5 194f5a4e56d47b43b071aa65604ac802
BLAKE2b-256 caf8bf7b18b9a812cb1d76dda820c69b99c8445d0209615197f7f908e389ae05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.2.9-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 490.9 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pycglib-0.2.9-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9fc0b77339e9e87c4beb6ea2d3252f327d544b36703173085747a7fee03182d3
MD5 78d4b180a4213b0230d2f3f9b695c827
BLAKE2b-256 5155c8b18b71c397be312f89f676aa6e85d3e3cc5e68a246e769ba42cb77b8b7

See more details on using hashes here.

File details

Details for the file pycglib-0.2.9-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.2.9-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 d06cce8121b91dc1bc7cd314cfe568b73776ffe685278417a7e51f5d4dc39d5d
MD5 bf21395c539b14542205e9e5eeeb0632
BLAKE2b-256 75c9b1733aa458913aa47d393ead795dcebc1425862bcac3317edba08962b15b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.2.9-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 bc0fd2a3910a3658535958306907f353297cd740fe9c6f8196cc6c5dfae1e899
MD5 6e89818d450dd31b42a8eb69e4f0d04c
BLAKE2b-256 573b499006932549b9aeab3c87c30a92449f911804a39be65234f6e06e6aa442

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.2.9-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 489.9 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pycglib-0.2.9-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 53e57efa4882521dc7eef76f419d55740740eefe177b4d726ebe472294f4864c
MD5 e81eea591376d76ff96e4477e496094a
BLAKE2b-256 49ea2211f369c654523fe0080a83d88438014961423bd9e0c14b327e92d2617a

See more details on using hashes here.

File details

Details for the file pycglib-0.2.9-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.2.9-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2f2418022d9d2f19f055bcf4c7b394f0e4aa30c23daaa5eaa31f782643d1e054
MD5 d631e868966459b0eac80ba90bccaece
BLAKE2b-256 bc1159701a55cfcc33593892f3c6d589c2faa754dfcec6099b45101b4c918328

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.2.9-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 6520ba3f00a39381a232b90fa2cd2308de06a19fbb86412f9695f811023681e1
MD5 5d49c6952cf55685248027a212f64ea7
BLAKE2b-256 74f01a4dcd3ef87bc30b3d803cf7876bccdf54ddbebfbb39446df0db89d175cd

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