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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.44-cp313-cp313-manylinux_2_28_x86_64.whl (806.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.44-cp313-cp313-macosx_15_0_arm64.whl (661.1 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.44-cp312-cp312-win_amd64.whl (234.5 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.44-cp312-cp312-manylinux_2_28_x86_64.whl (807.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.44-cp312-cp312-macosx_15_0_arm64.whl (661.0 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.44-cp311-cp311-win_amd64.whl (235.6 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.44-cp311-cp311-manylinux_2_28_x86_64.whl (807.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.44-cp311-cp311-macosx_15_0_arm64.whl (660.3 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.44-cp310-cp310-win_amd64.whl (235.0 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.44-cp310-cp310-manylinux_2_28_x86_64.whl (806.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.44-cp310-cp310-macosx_15_0_arm64.whl (659.1 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.44-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 234.5 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.44-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b672a4b543465c126bb7cdc395f726f269b2aabdd56676bc598fb344c6086332
MD5 eda2ab5bac3491bd153f8f90a0d45d5a
BLAKE2b-256 9671c1f2df58bab60d2b1029c03eec8bdbe36526d703e9fab093e5f49fdba4c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.44-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 41e4545a8e7dffc6a943a52bfc90e4c98b2c11803c4d46870d9f2f6d2eded8b4
MD5 2319962c63a3055bdb4df3eb416ec5e4
BLAKE2b-256 11a777bcf829ab76f90edc0b1278e8f7e72b5e0461363da9cb5b78cfec7a6a0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.44-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 5a1d5f09f636dc522a1b743eaab4e7682398451310512566c58c19248c7aeedc
MD5 652e55759f90c6d479928ce74cf3b6b4
BLAKE2b-256 2ebc20dd81d60d0d939fd9c36277b20873bd7e63835dd5686e5372b25602cefc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.44-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 234.5 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.44-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dd49d1a851bc4a57cc877079be9bf9408c81cb9da7969d38882804b1c8261fad
MD5 f4264927b774aedc27a3e77b040642e7
BLAKE2b-256 335089127f0d6e83302da6fa08ed8e966f6a53ca7e3fcc9899edfa4b05a0639c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.44-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 985e5e094980986f3898b1749e95a8c89d001c4ba9942a6d98347f40c2f5ae0e
MD5 a6cd0b9c13189aa224e6a56015b0564c
BLAKE2b-256 8c1948124dfadbd35767ccb4e008702318859dbe92dff0e95959495add4fa18b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.44-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 4783e9768fb7ca4354e44c93342f69f85f6dde693921d0b8c3dd0086c6f5faf0
MD5 db2177a683905cbee78707d823b5318f
BLAKE2b-256 b32fbd0be39c7bb61b457423169db7d5039eb0181feddfb030d3b95e8bb70353

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.44-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 235.6 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.44-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 546454dc8c0fbbb2acdf089a60b6823edf2bf26ddac7e39ad8c2ce9b58ec7446
MD5 36123e73a6905a81ea1ab5999e7a38bb
BLAKE2b-256 383aba0c728d7e05c2fb896727a6c97c2795d5828a66d6e4aac5690da49a6b83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.44-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a8f69693703a826d335414677472b79026276bda10fdf9909df6ecac36b0edbb
MD5 33aa9974282a84338e9c927af286f87d
BLAKE2b-256 94a1fe4256e800def239c50e33ce4c0dacda4dfb805686e4d6558dc582f24cb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.44-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 d50bf6ea7e059d69f9be1688f4b4a2751a9317346fce3d0f335430098774a8ae
MD5 cc4e2c24d9d0693d2183119c81e7eeba
BLAKE2b-256 1435fc1c0f9344adbd3b3bcd80fbb1ab8c15bf60ea5078e3d0523efff49f49af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.44-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 235.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.44-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4fdd5e3fa5bd85390a652b819f4519909a7d95173475c00797eb717ead0dec48
MD5 6f48ff20b97db959a7ab6d555f46c187
BLAKE2b-256 e4914327359dca31a91e47e144a72964d7e628a5a5a28b7498364b40861b5b58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.44-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 931e1bdefde09d3f40b0e92b8a31e973f35a569198a649817f951235bfbcb609
MD5 57f3363be9eaa8757ffcda2f013980a1
BLAKE2b-256 aa2669c6f615da530f280e6977e76e624bdc2e706c289dceb7ce9cc302527f22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.44-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 4d9cb1276d383e31b0cd0b0cc332340545bd26ae24cb3bae7e782f9acdb755f6
MD5 48175c7c1bd84c94096cfc29c0527d19
BLAKE2b-256 d0d3b8f8dcfb10fdcb95f257e76e866945a5e9e38e80f4d7bb2b3cb43e28c43f

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