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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.39-cp313-cp313-manylinux_2_28_x86_64.whl (777.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.39-cp313-cp313-macosx_15_0_arm64.whl (633.9 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.39-cp312-cp312-win_amd64.whl (212.2 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.39-cp312-cp312-manylinux_2_28_x86_64.whl (777.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.39-cp312-cp312-macosx_15_0_arm64.whl (634.0 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.39-cp311-cp311-win_amd64.whl (212.9 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.39-cp311-cp311-manylinux_2_28_x86_64.whl (776.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.39-cp311-cp311-macosx_15_0_arm64.whl (633.1 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.39-cp310-cp310-win_amd64.whl (212.1 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.39-cp310-cp310-manylinux_2_28_x86_64.whl (775.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.39-cp310-cp310-macosx_15_0_arm64.whl (631.9 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.39-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 212.1 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.39-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4ddc8a1ca0e592e445fd5ce2d9702a519257866c45210a200cd64cdb8e658788
MD5 f1cad5ec23b0bba0083164c7d7b0cf87
BLAKE2b-256 1b42ccfb1bc70752e19181d2fb8b117ee9cdf3fe97866d3ce758be389f595460

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.39-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a0848b8845fa99143f4c921c07d700c32e5cc3b7af7ce9255d0e63096e0db89a
MD5 ddb7c2b61c0bf57fd291ba7cb4aac938
BLAKE2b-256 35585b62dd9ea152b5a138cf7634b74a568ec1a9df662e2ebfea3ebb9ca8884f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.39-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ac1070fd181757c80e07cbbd9bcd5598eb00e63d7c5a21a2dcc7de7dc658656e
MD5 e3855fca8741e2c0215ba5992d50c86f
BLAKE2b-256 80c018ff399ac174d9828c67232dfdc700668ba5a667752fb77250c204ed61d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.39-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 212.2 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.39-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ee771a09a26a7822348481b70a4caeff41e4e6ec8e2dfb1d83c472f2d32f3b3d
MD5 8f6da087049f5e7335e04fade5599629
BLAKE2b-256 0626b8c56dfead2e4bba10eb4bcf02e3d030efd962e6ab1db34d78ac7c6470af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.39-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0678098f3b2bfeb8c646170ebf3c6cbaf7c42676e855134d24f830de8641a1ca
MD5 e587689f07841927d616c92ec1b24c8d
BLAKE2b-256 d84f32147a920be7d3041a8a94347eff993204225a005f87a3344712f7985768

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.39-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 4c9f3614dcfaa083782d76ccf46bc4a51dc89a35f930088ddc2bb03285693011
MD5 04f56138d799924ce828d747ea1d4b30
BLAKE2b-256 5bfa0e4190d7550210cc05f9c33889438e4af464cc04fd66d87b52205c4748ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.39-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 212.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.39-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c96b534f88b62965c66f79914028b1814e946a18173cdaff65f2f246ad12240e
MD5 0bf563c39a5ffbb4f6e989c012f32674
BLAKE2b-256 d1e0bea4da11a8ea5cb0266905e162e406de6ff44173039d594f9f7d48251e8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.39-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a3fd12cef18cebd96e4591d5ef71f734fa27887d0e7c80aaf43efd6e6c10f376
MD5 cb00da4daf3895fd05403c8f2d1582b3
BLAKE2b-256 a911e3fb860989e50a11f1e4bb3e51eb5a7149732f580b1a741d3f392dedf6ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.39-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 91b662a156f15aff52ff11919f9b179b0f8c5d62d22f931ff7318d0921c12ec8
MD5 955a8d726342d568b080b2776d05ac99
BLAKE2b-256 ab40c92730ff0bc8447451380f0816bef5621f5bc2e43e3bae047c80d7e07aa9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.39-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 212.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.39-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 67bccc1ac54de634eb0725f78832c567521380aaa719f2d9a092e9bd0d68fbc1
MD5 0b9877c96a6ec45b589dc15ec88de058
BLAKE2b-256 7d4ead91b1a5eff13ca6622da815c71daff9ae4c48a5da584762c9a1aa95db35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.39-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2fd1f772411c913ffeb6dc2a841b7594be57f3837309f5ddcf994944c524fe79
MD5 44b77b039a4ca2387423a3d173cd9e1a
BLAKE2b-256 29cb449692ac309639844a8510539b3f8f7ca51fb6d0abda66bb721a15ebb5e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.39-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 0c0e264473e712036990b6bd902f3537d45da87258c4f41ea1d0048b049fbd33
MD5 50972b77601f3a36bca498a503fdca92
BLAKE2b-256 42e2ad4eb40372494a32c73c3ff639855256a7f5c4e8d6fe9e04b73ba3f98810

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