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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.46-cp313-cp313-manylinux_2_28_x86_64.whl (827.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.46-cp313-cp313-macosx_15_0_arm64.whl (677.1 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.46-cp312-cp312-win_amd64.whl (248.8 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.46-cp312-cp312-manylinux_2_28_x86_64.whl (827.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.46-cp312-cp312-macosx_15_0_arm64.whl (677.1 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.46-cp311-cp311-win_amd64.whl (250.2 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.46-cp311-cp311-manylinux_2_28_x86_64.whl (828.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.46-cp311-cp311-macosx_15_0_arm64.whl (675.9 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.46-cp310-cp310-win_amd64.whl (249.6 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.46-cp310-cp310-manylinux_2_28_x86_64.whl (827.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.46-cp310-cp310-macosx_15_0_arm64.whl (674.5 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.46-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 248.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.46-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bc99c3862e5dfdc47e7822ee3541f6f65bfe11750e7cf231f4149a67de73c8de
MD5 65b5dbc12334d64026caeb997aad1f73
BLAKE2b-256 beee4aadcd0e0098a7a2db26516a33bb757bc6805e5ab365a52c5a446eb9d804

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.46-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fc79c6987d2549e1c487e7048381f37d02a9dae2b18e9f0c8aa9d3ed975f5c6a
MD5 ca737fd5ab374443b3f30b67cec571b7
BLAKE2b-256 3263cb4e8a83edd680e63bf32a97be04be35fb1ee4faac97a030f83ae0f20bf1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.46-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e536073a4619dc487cd83e3d31c7c0657ddc2015b519e03caa561985a9d147b2
MD5 fd57cf339edf418f093271fe9e8ca0cd
BLAKE2b-256 49408133eb0355b26b3ec5884f6e35c11317e026e8adf65aec9d4db08a7bfe2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.46-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 248.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.46-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ee7f61615880454f5bae520fc9fbed8491bac773e7b82a804dd9949ba56fc319
MD5 254be1f2b301f48cadc9e4004c97031d
BLAKE2b-256 4dd9bce3056f60921177ef372bb299dff8653a5f128431e30927ac6f62eef2f0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.46-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 50b6d2f099e8f99933087146f8256cd16e1287c04ee0ce0e6ead4ba1f5e21d66
MD5 cfc47d9c47326f8de545fba8c9d917f7
BLAKE2b-256 e05f1c7d06f203875185dac94620192f81b552f8e9709b817708233e3cb0437e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.46-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 3ec29de73cdef853817924311bdfa0b2530d1749689833eafff79b3c2d7ed56a
MD5 6aa46eb2a16912722960da9b81ad3b1b
BLAKE2b-256 33367f1eb4045302dec28358c6a4efd00955151cc82ab0493a1ea2e1b0217033

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.46-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 250.2 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.46-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ceb8b8a37e3d53d44ed11d6e9ec2b27c718eda2da215aa96c42c63373c80cf64
MD5 be5c0081a5a1def5d86cceeeec135a99
BLAKE2b-256 49c6634026cdc31cbb13ebf2a078e9a1d947c1a3ccd26fcff88d3c1fdcdc8eeb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.46-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 624b5734c3d54ff7bd21f29674b0a9bea7e62f6302bcdbbdedeac1686f1c5e17
MD5 5fa930b017dc74675f588915fba299a1
BLAKE2b-256 ea3b5bebdf71d833a40f0badd8725e80e9ba960042a9dca248bbc2c25ba330b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.46-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 cb26041352647e8a510966665f3fe627b96d397e354c90ebbab411145e9ad9e8
MD5 f445f32bf16bd6fa61701ac998168ecb
BLAKE2b-256 de645a626df853c6c6273ad2e7c806bb0edfcc83ae676cf9da46e3f2d044a5a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.46-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 249.6 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.46-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8afec8e7a85d1416c8d92ae86484ad0eec11f12740d5a242d6b57be109ee35d7
MD5 8678841855e95f403b1a0af54a0da026
BLAKE2b-256 cb2f6251a304bb65b6eafc752911153610f3cfbf837da5272645cc2367e41041

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.46-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4d1dbe490ec88b4d066287cf05b8074a82036ae22f05324367047cf43dc3a908
MD5 5b24fe9dfceee0e81998e91252ee130c
BLAKE2b-256 5ed7a3d3799fc8dc6ee60e0c3918ec63014cab32b6ef6e2238c74bef0c8b6692

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.46-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 10ba28cf5e7712d4e8c726b1f63214a37e7d7605059d616fbdb918b521ec08db
MD5 d9315b1d393ee47f2fd53c8ec1d8f49e
BLAKE2b-256 4105480bbf6b11724d58a9a5dc2cc4f3b35676aa3954b22534d381a2c1e3ae9d

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