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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.24-cp313-cp313-manylinux_2_28_x86_64.whl (641.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.24-cp313-cp313-macosx_15_0_arm64.whl (527.9 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.24-cp312-cp312-win_amd64.whl (115.4 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.24-cp312-cp312-manylinux_2_28_x86_64.whl (641.4 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.24-cp312-cp312-macosx_15_0_arm64.whl (527.9 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.24-cp311-cp311-win_amd64.whl (114.4 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.24-cp311-cp311-manylinux_2_28_x86_64.whl (641.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.24-cp311-cp311-macosx_15_0_arm64.whl (527.8 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.24-cp310-cp310-win_amd64.whl (113.8 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.24-cp310-cp310-manylinux_2_28_x86_64.whl (640.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.24-cp310-cp310-macosx_15_0_arm64.whl (526.8 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.24-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 115.4 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.24-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b68a0c42e26da560d53bafcdb13f57f76e1d7809282dc6242fd6fc0c46ad6342
MD5 9f868949bb5c12965ef26f186a3c0908
BLAKE2b-256 379fa13b243b923a8a7855c2c05f25cb101f606d32305dc74381744f9be43627

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.24-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b544383c655454b85428cda7787c82f8cba2cd5e80f9b475dfa5661172daf4e8
MD5 47ee0ece25529854cb189375f9ba47ba
BLAKE2b-256 0ac2e8c320be041725f5f325d5c907d10598826514eb03e3a406140ce6419ba7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.24-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 5bd907526909b0d8b1a3139d1ab51757d15dcf2b0f2dd2df04703b4be4983ee7
MD5 923736dfa7853a010ba8a78b47c5a483
BLAKE2b-256 a2b53b0fa553d1fb44e4714353ce8801e7c339ac034239e56eceefa0e7935749

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.24-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 115.4 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.24-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 af515375b88911cad63612eda6bfa4cd8689af510d250c80382d0b5c36c6fa30
MD5 c9f03142aee130406ad853f16d1bd792
BLAKE2b-256 2b58477d6611f6b5d7eb505fc061a745a1b085b69d1ad221b86bd3e85b59d96d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.24-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e8da78f945266ea76e93ad3792d51bd7f43ba36b173ecadcfa8576e56bd06c25
MD5 bf636099adf7daa6657157ae2833c846
BLAKE2b-256 6e3535aed2c57c9fdb05c13eeb6a4e9188fa87e39d4ee73206597ac857492b7d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.24-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 9def68655fc7668547a4db29ed00184c561f5b54a05f54ef73a1185f603bd6a8
MD5 60956fd7479497fc20829744a0423dd6
BLAKE2b-256 bfd7028ab2e867d37399109e28181665acc53d40bb6a4444689eddf75bd9396e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.24-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 114.4 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.24-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9bce28c0b3ede0ed89bd89fca2545850b563e7fc0e5dd364673fb4d431822f20
MD5 cceabf3210806f32e9e10eac8a4fe6de
BLAKE2b-256 bb6838fa1f944415cf3e4adfb4db5bf687746c508fe2d78a1694de3665754f62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.24-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e3a4ff360d133db5fdd36fb4aafc5730ec2667f8b2903194c820e9fb22842aab
MD5 6673b3ecc2df92db8007b4f7d0520ae5
BLAKE2b-256 bde6be156bbd2db5ad2d5e25e89f7e1543f4ac135cbe15ff7acd3b5f50751717

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.24-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 af5c5f1d6d900b9211a8c9bf3c17233c624359bfa5849fe1a37ae7804e4d7e08
MD5 851471c9c385c434eb4e3563a96c71fa
BLAKE2b-256 abd9471dadf488ffc7f6e6a085932e32903ac116296ea6902e6643f80c47fad5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.24-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 113.8 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.24-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 79d35887bb96630d880b2ae180dcf51792916feaede992836b55266551bf1912
MD5 22817fc570298ad3672eabf3ab362815
BLAKE2b-256 e18c7e08278be1f9c882cf548f2b4e1f8c15b4986581708dd294161f7b0b77c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.24-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4b4b0bf07e7fd8fd3355416300757e531869c70b450ae756c050ede60d6a58f8
MD5 ea90be7b9667492303a2529af26d012b
BLAKE2b-256 cf5619457731885bc185e64af6f7ba343be9e200769b3b4a1a4edb0bbd322eba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.24-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 4c901773a30ef3fce169493b6b652c9166dcec9fd2323f31018873c9d050327e
MD5 0e3066c7c30c426c9de4c91d29ed4e70
BLAKE2b-256 1e13c0243306ac4c0563d386684ec5c733b987634081bb6631d97536bf36fc34

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