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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.29-cp313-cp313-manylinux_2_28_x86_64.whl (673.9 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.29-cp313-cp313-macosx_15_0_arm64.whl (553.2 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.29-cp312-cp312-win_amd64.whl (138.9 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.29-cp312-cp312-manylinux_2_28_x86_64.whl (673.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.29-cp312-cp312-macosx_15_0_arm64.whl (553.1 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.29-cp311-cp311-win_amd64.whl (137.8 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.29-cp311-cp311-manylinux_2_28_x86_64.whl (674.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.29-cp311-cp311-macosx_15_0_arm64.whl (552.9 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.29-cp310-cp310-win_amd64.whl (137.0 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.29-cp310-cp310-manylinux_2_28_x86_64.whl (673.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.29-cp310-cp310-macosx_15_0_arm64.whl (551.9 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.29-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 138.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.29-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 15fe0b9018d44101c9528d68047a32e09347c071ec408b577e275a01e15fa712
MD5 ea5b40d65d0b36a3825905bacc3f5505
BLAKE2b-256 f6d86aaa130fbbabb0567768fc512740dff85d17229e4dcaf6ec87b5a5b13c16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.29-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 63ef8ba49676046e9ce33a09b61cf8d5cca95430e29e0ef6ab53d4206e1e238f
MD5 51dd97bf63fcbe7f432e398b0145a469
BLAKE2b-256 38e64a7c4ad60dce76b2bfea45e96892e332fdeece173385fe020bbe21929e83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.29-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 5f3130c2166cc709ad428c84aa9c5c07ed341a52257fb88c8a1d104c73175763
MD5 d2995e6489fe0bfb933033cbc6a71c3c
BLAKE2b-256 a82985bc63dcb772abb89d1e661b87eb4b958c2af2c92ed1c2ec1c7f97b4c3fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.29-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 138.9 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.29-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8bc3005398a4ec03df5a69d5f72f542a664d7e8bf32bd47473bb950fc0653b58
MD5 0b2a06810fd7154da715dbe4f55e3853
BLAKE2b-256 26be78e50685ee635ab423e24e02f35dd892b52b2ae889c7ef64494eb1648355

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.29-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 19423c14b6935e63bc6ec3550e20271a14a93d741fb9cf1f3ace89443452ed55
MD5 08d25174e4e83ee1c294437a92f2760c
BLAKE2b-256 538b1e6ae5088998c3f2d5e50525e8a1d988236985a1d1af2856f58bd00d561b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.29-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 7f9f905e95d1d31b53d00376e51bc56aa7d73c7e3a066519a7329055e64e0776
MD5 9f02a91e4aa959b5799f6b1d590b0cbe
BLAKE2b-256 0c581607f6d273dbbc80bb8dd68f7711c7617af4eaed5a9c725c3de2bd7c4c5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.29-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 137.8 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.29-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 80a0213d4c9dcf8548df5c787b4201b7f7d66ccbf59d4338f7aa9eac2f265795
MD5 3ae13d2c7aac1cc3a6d4846f815ea34f
BLAKE2b-256 9181c39e0379b2a3eb26c8705bf1016d2acb6a1ddd997965c526b550ba8d2cdc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.29-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9cde7e4d2bc7b96cee13cf953a79b145bf745dcc3bc1f7c6f0a1815d65f4c424
MD5 0a8daa43815078d3468681af0dad9550
BLAKE2b-256 66deb1a05b504cb60659dd8ecf1044fe8677fcc2fea2e11d89fe832fafc1fe7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.29-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 1366cb750411c6ce0b8c1f24f695cf76d95b9170098e876f06b273014d80606d
MD5 e4fcccaa0d19d971b124c701e422785e
BLAKE2b-256 d53d23ca359d650c80f7436e634727f7398a9bd1967ca253fcac08c3ebc821c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.29-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 137.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.29-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 cbf27b41c8dd97e79021e3e53878fccea8bb179706d10e36b4906fbc1f30c359
MD5 60517f66f10fb12475f2ad46bd4c6209
BLAKE2b-256 7a3e85f7b046cb51c071948e244c2826929d9d70fdd81f844b942c741dcbfa0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.29-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4e6ecdb309cacef48da23d02f6ea4d001a21e416b88f0ae842e5cbdb5bab86fd
MD5 c142af0939cfb69aa5d699d53f6b7f3c
BLAKE2b-256 43d995f691c9966a1e103af4fb1b66816782775e96da951ff304f783d35769c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.29-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e4d98e4aa5a5ea34f9252c7c4218052dbb815dcfea2ab901dcdde70bbe55bda2
MD5 54af5a990ed058ab5a82152cf53006c4
BLAKE2b-256 49babf3c9ca18dbaeddec913f4f81fecd89d701efa5596f8c40d4067012a597b

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