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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.27-cp313-cp313-manylinux_2_28_x86_64.whl (661.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.27-cp313-cp313-macosx_15_0_arm64.whl (541.0 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.27-cp312-cp312-win_amd64.whl (127.2 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.27-cp312-cp312-manylinux_2_28_x86_64.whl (661.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.27-cp312-cp312-macosx_15_0_arm64.whl (541.0 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.27-cp311-cp311-win_amd64.whl (126.2 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.27-cp311-cp311-manylinux_2_28_x86_64.whl (660.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.27-cp311-cp311-macosx_15_0_arm64.whl (540.7 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.27-cp310-cp310-win_amd64.whl (125.5 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.27-cp310-cp310-manylinux_2_28_x86_64.whl (658.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.27-cp310-cp310-macosx_15_0_arm64.whl (539.6 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.27-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 127.2 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.27-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9117c5739a8f3a27dafe2aff6b4ceb774e0dca9bbf519309db582cb919dd56e3
MD5 38cfd07b35aeb7f5edb17a1959ff0be6
BLAKE2b-256 78122c0848cd3ff128c05a15164b01551b56f4aeccdb8934da933749152fa274

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.27-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 36e9cc6960aa4e9ab2c8091cbcf188037e64f71ed16660fb4c9497d51e8c5629
MD5 a859b91a9451882a13c561baf64e5e17
BLAKE2b-256 8cd2d726e16d914cf11dc64bbf8dd71b907f2a4281dcab37e54284b45f81ad1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.27-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 4ee020c9dfbebf08078d315d466ba78112632e521e4a040dcf721f045b0471a0
MD5 139486ae169b35eee944c6ffe0cf8c8e
BLAKE2b-256 a31084bc590bcf2b6df687ef8d11647fad967395438639b2ffe59b198d98c75c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.27-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 127.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.27-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 017c905e3bc87de4fbd84f2e069402505786ddd4462f1e5d015b57769fc84c55
MD5 9153e7f23947179d9cb605e283a3683d
BLAKE2b-256 3031e7af2105ba8579e3c8022ec0aa345d1781bfeb4a5739d0c070496e39ffbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.27-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f5568966eaa306c823bf9d824315e6147509b457b4413d6492b76a72e378b8ae
MD5 70b48582b66c4d0bb51cb601d7e1bc69
BLAKE2b-256 6b8ea3b61be72526ca1692e7090c2dcca4a6e24557585e12596b9352ed588b3e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.27-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 b23fa7cdee46b8a2761610a564b6cd5d0d9ce5b73311c079c0152cfed42ce3bf
MD5 6410e0ed86beb679508729816ef9de60
BLAKE2b-256 e2ba402976e8e1c6744d11c3b32d0e979b50dfb19d77d3f73eda660eaf14c99f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.27-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 126.2 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.27-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 393ed41d9f348ed9b079511ac1cb70d38ab186d9c455aaf8737ef971d44f713d
MD5 3fd631bd21c9e867d92b177356936250
BLAKE2b-256 d8db500959441f8c9cbb91c6e0b6c8f5312a52b9e0b114a3fad150c3f0bab9a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.27-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d6d3af1af63919bea527a9c7826f4ca678c4f040c102dadb759866fbc3f627f9
MD5 e352cffd5777b0acd21f26a9c934ceeb
BLAKE2b-256 3f67c7b2b41171336ab324f391e18fa20919d7fa67773c42eb5f55c1d780f54f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.27-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 747cc8ee88c899189cfd075a66cdec12e567fe801593ee5456362fb1ec4811ef
MD5 c4c2da9574a661854b7ad8b129e5bbc4
BLAKE2b-256 fe6a86226166848704dabbe5e9604f675239392338cadf3bed84e5bd1abc97ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.27-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 125.5 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.27-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 777f2150cdb0b80e7e152e8c696c85383853602df0c5d18506399dd461c61428
MD5 cec0cbc75f05cf088c747348d357bd18
BLAKE2b-256 3ff24b81fd514d029002b4388f5a36c7dd27407849900527137c6ac6edf49aef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.27-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 92d3730589811fafbabac9bbc50d49c0cecba6ab908757345bb467677743cf1e
MD5 8e8f646b61b84dc11712c4510c3c47bf
BLAKE2b-256 f6711897bd6fda0cb39bdbd22f7d5bbbab198ec276e12e54268b32fc4938aed0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.27-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 12a15d4cb53b089a452abf8a94056b7927a18b85c830599a8d0a28d7c65f9304
MD5 699b0cc2bee59fa08aed59894994464b
BLAKE2b-256 a27d0f5cf28081f90bdb00201d4c70ac8bd35cea7297add11aa0a5011c633add

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