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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.41-cp313-cp313-manylinux_2_28_x86_64.whl (784.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.41-cp313-cp313-macosx_15_0_arm64.whl (639.4 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.41-cp312-cp312-win_amd64.whl (217.3 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.41-cp312-cp312-manylinux_2_28_x86_64.whl (784.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.41-cp312-cp312-macosx_15_0_arm64.whl (639.3 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.41-cp311-cp311-win_amd64.whl (218.3 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.41-cp311-cp311-manylinux_2_28_x86_64.whl (784.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.41-cp311-cp311-macosx_15_0_arm64.whl (638.5 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.41-cp310-cp310-win_amd64.whl (217.6 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.41-cp310-cp310-manylinux_2_28_x86_64.whl (782.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.41-cp310-cp310-macosx_15_0_arm64.whl (637.5 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.41-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 217.3 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.41-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 13a1862f835214b52f0c44af714a8edd18a43806e6d8152622677ba7d68baba2
MD5 1638a153394e3d1a6245fdf52442ec83
BLAKE2b-256 d6e8fa668ba73017ad3633a70420a348e95cf7c0d88427c0418475e0793c2ebe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.41-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ca74b0880b70eac5cf80daf17f963825e73e14de7568c41f09cbc87f0a9b1d8a
MD5 eed80f465ded3e987e09e5ee75191a75
BLAKE2b-256 ef9df55ad2a7f853db04adbd67a3ed1ee5f8d18909e503dfe86e89522f0b0ad7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.41-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 1f74ed6211a887b67dbc2f7a449c4e5a18522aa5ccb704ed6fe5c2752fe40328
MD5 cb7c852911a4392122731b6e2d84c796
BLAKE2b-256 76765a73889ce2cd8d867d5fb5e382eaf0f16105f137561e5e97aaaba69bb3ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.41-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 217.3 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.41-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 03de119a1bdd0d439dc801a62d9cc2d6d4c1212f4034653809c32d74266c3c25
MD5 937a5befa23fa6b22296345ff805ac1b
BLAKE2b-256 de2fd6f354c01456064897fce9414590add00e72303a6b50724515190f4bcfe4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.41-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 75307ebb1c5bf4d7c921d021bd64eeb090657bbfdfc550d0222826fa571b5065
MD5 9f8f87695ae362d1e6e320023386240f
BLAKE2b-256 cef2299c91a466326d451e5e700ae6c4eb196c211acc3264190d33f94aa050a7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.41-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 3116fe5b6becb6c3d262882664edbcff31ea1629838b5554b63bb7eb359e6bad
MD5 525ba708178b39546226f8c7eb3cedb2
BLAKE2b-256 036e5d3eb79ea3df2727a43dfd699d5ffa07e1e6a3400cdfc7bfa9cf62d9881f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.41-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 218.3 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.41-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 29f87495e62574b736c50f01c1426dab9fdff1fb751a42d38a77af249e60109a
MD5 50a22f37158712cbf90ca9a2e6a92fb4
BLAKE2b-256 772c1c611237b9c5a4e14e43c25291656ca3267dfdd5be0bff26c6429fe8841d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.41-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 02d32a436fcfc67eeccfc332088fe0eb0dfe0e65fabdf1a24ebd1a7f5f4ba128
MD5 8c9de2e12b65e0efe83c30cae2bfa1e3
BLAKE2b-256 c99756cdec240c7b7dc2980e8447eb3fee898b06cd9891b930bef9dab8d5bd15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.41-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e2325968835ba4b8c01278c3b8921b6e0c0008516e2a730a39d96f380e248362
MD5 c771de29a1d2a90c0433d8de624ea680
BLAKE2b-256 9f00c7d18b9080eb42851930b4098aa361e22cb333aecb08e42a14593fad5fe8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.41-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 217.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.41-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 32002ed4c7de479d874f2d8f0ca6aff3adfd8bd7c41ae9b54064c6819f92a4ee
MD5 9e72799a0bb3183f84bfe9d3f940d310
BLAKE2b-256 1963adc643693f357dfdac66d38bf95fb702cf497fb795dd3fb447decc30ace3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.41-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a3428510a31f552547278387a10f248253c3218bd5eed074b807c66e32b18b05
MD5 19a19ec662421a92e36c2c7929565ef6
BLAKE2b-256 9595c8036fb22b27763b9cde8f47fec839e34eb1976db90eca1ed50220e3c1ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.41-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 43b28a6d596ec2797361dce4c8fbd7a95d6946f83b26a66fbe987c2da66b92df
MD5 cfa943d0fa3974703e12fadf1460c981
BLAKE2b-256 d66aab5de13718873fa54c4f7696ac4d4a36f81f83108ddc8ee90f0cb7a4982d

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