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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.48-cp313-cp313-manylinux_2_28_x86_64.whl (848.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.48-cp313-cp313-macosx_15_0_arm64.whl (698.4 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.48-cp312-cp312-win_amd64.whl (266.7 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.48-cp312-cp312-manylinux_2_28_x86_64.whl (848.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.48-cp312-cp312-macosx_15_0_arm64.whl (698.4 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.48-cp311-cp311-win_amd64.whl (268.1 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.48-cp311-cp311-manylinux_2_28_x86_64.whl (850.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.48-cp311-cp311-macosx_15_0_arm64.whl (697.2 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.48-cp310-cp310-win_amd64.whl (267.3 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.48-cp310-cp310-manylinux_2_28_x86_64.whl (848.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.48-cp310-cp310-macosx_15_0_arm64.whl (696.0 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.48-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 266.7 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.48-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 980763c7b9852dd2b5535ae8871996e6f387b7231c6903715bd5ab69b31cf091
MD5 9ae64d7c15f2fc3a722987395c25c8d7
BLAKE2b-256 63be0ea6bff014d48fcd7b28d84e7324600cfc265e7d11105b18ea5c828e3301

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.48-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7e74f9a22c80aab6a6bf82fe3c37942eceb64bc9509908463e22b5d57589d440
MD5 39590686844f82f5f4f8a1ee804243b3
BLAKE2b-256 85c74af0b3bf9c567ca47559aea9fd33f0ae2971cfa56c2082cec55ca7f917a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.48-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 eaff6228ee0e25cabb0e71e3cfe647fa23f4919ae236372c6c6231c314cdc5e6
MD5 c299011c40665f7b6d7ab0d2d4718829
BLAKE2b-256 4d412070b63e412f94b96e06bb38d1980773da7c4cbb9fb1b77969a10f2e738f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.48-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 266.7 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.48-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 32ec77980d66d49e2cac619aa46257c965c4de411743575055eed9f491211447
MD5 30ddf6f566643017f1d3f54f2818a6d0
BLAKE2b-256 6e2bc4e6ee33da375238b82b16216b1d118d9f6cd5d9be687a639e90d05e6fbb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.48-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 271072ab78c1833f911784c1cef3a8543e5b75749b2b1ac3cd6dac7fc45b8ff3
MD5 37c4c7f91b656a303c7332bd2ef9a1e9
BLAKE2b-256 85e1bbb8f4eda3cc078e2c36792c6caac62f2a6ee13ab5ae25d3a7877d4df99b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.48-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 f455e6e7d3b6ad02a7969d4d795fd418b09292657532b26509b08b2fc9ea6131
MD5 e217c987a3f7f2e8b940e2bbed986376
BLAKE2b-256 d38a70ba6580dcb9c21b1fe4a34eb565131b9f1259aec15c1d327c954ced562e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.48-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 268.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.48-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1dd198a96fcb01a2693826feee87a58eac085c7886d6f46f1f98b68d56994299
MD5 a13705b8fff118957437519200ce2e7f
BLAKE2b-256 1ce3528cf3f1e7da0f49f6b98cc1e6a81a9cf0044752f067f41195ef992d7f91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.48-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1eb70ce197ee77c3c6aa0052f0fa36376d084e16fdadc648d704ff442c1b81e8
MD5 ed030e5dc20b4a55a941058488bc9f2a
BLAKE2b-256 2639935ce4132546efc0aa903c9d888e602aa6f62ec52068d72402be5ac5c941

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.48-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ca25f0c8b01ff5e5a56ec17efb5aa2b5b82b838ddc2d98cf2e6c6b541caf3063
MD5 2bce6b12c18428d5ee6a7fbddb5de08e
BLAKE2b-256 cffd70bc9c4c1709fb28eb2f70cd82edd7c20a5f64800734ee9a4ae40f3edf3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.48-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 267.3 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.48-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c897215371ca89580322a6c0c5d2611c2631ffd795b7a43d778036828650f13a
MD5 76f07776e424ecbdace358ec324453ba
BLAKE2b-256 9e6359c31c79a103e3e463e2635c48c3d917b2c5c23cdd4e9a87e1c7fe976d17

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.48-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 385fe67354d6b5de95f1696647dcfd94319b02abc8849411f7302b97f7f2765f
MD5 ece443c90ce70ac05b18bc4ee3097448
BLAKE2b-256 d0c5face8d0b5a7cf9bd5794a0272c207f517b0d43ca458b36aa0ec05efe8e85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.48-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 360d7519a66d3926a6fd76ef605d679f739e62bf440ca2ee95f62f0885c5d083
MD5 c42bd040002d80a4767eae2f32a2584a
BLAKE2b-256 0a8e1d5f8681a2d63d7531c9fea0ee9e0d2e96e1e07eb2c80df49ea1e52d529f

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