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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.23-cp313-cp313-manylinux_2_28_x86_64.whl (611.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.23-cp313-cp313-macosx_15_0_arm64.whl (502.0 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.23-cp312-cp312-win_amd64.whl (91.2 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.23-cp312-cp312-manylinux_2_28_x86_64.whl (610.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.23-cp312-cp312-macosx_15_0_arm64.whl (501.9 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.23-cp311-cp311-win_amd64.whl (90.5 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.23-cp311-cp311-manylinux_2_28_x86_64.whl (609.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.23-cp311-cp311-macosx_15_0_arm64.whl (501.9 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.23-cp310-cp310-win_amd64.whl (89.9 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.23-cp310-cp310-manylinux_2_28_x86_64.whl (608.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.23-cp310-cp310-macosx_15_0_arm64.whl (500.6 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.23-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 91.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.23-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7700acf04d9b17ed5c4a6ced10a5da698d326a8e10f4cc52f03494907bda5de5
MD5 47b6ed523a8a28cbc67bd098d92acddb
BLAKE2b-256 d7f7bae36b974f534ac795e0b5b32ad01a90c5220dca08b1751526d542ab1e8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.23-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ed703c9c009b4c93c08169c2c1555b2e42b541742eaf83f9509634b2700436f7
MD5 43da406929e6db48fdb3ade8a1f3f0a5
BLAKE2b-256 e827e8fe91c979d67a8c698f59b98d13070697c36f0a0503fb0e259f027cd7c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.23-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 fbe4f71ae062826f70958e76f8770ca4a0369ce3346cd8a319f383d0e38a35ba
MD5 a89e015f5fa3cf4d4d05e696a6e02b47
BLAKE2b-256 a25be00a682cd825c3843c97f13bcca3929aeae3433c866d6217d80f9e7b8f33

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.23-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 91.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.23-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2dc37c6d103bedb68de91a3fe8b1bb5be88e77e111ac81583570984bedf8f1f3
MD5 0f2fd55e79fcb8deaed3fe5b74f1ab5c
BLAKE2b-256 402fa3f63e4a94935fbf58f5cadaa0aff975d9a5c1ec2961dbe72abe5d3b6b45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.23-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6e7e21da886b38334968565bccc3069b9df9ef3c1220ae27cf63a994e6af6789
MD5 f033928366eb6b437c0bded51a0a9c36
BLAKE2b-256 98f66a82b50fd7e2340abb437832e7ec3f7e3b5e742c84501cf97f35420272ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.23-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 55f4dd6af01def050b439ca178e14b923de3c81291066d26598de4eaecd0068e
MD5 1e61a8c91c66f44b21e42a788453bfcc
BLAKE2b-256 c21351dc9ac9797dacf759af52853dad4e48d05a9c82e5f2c9950fc2a1746c2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.23-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 90.5 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.23-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e4615438497cd0358d67d18f789ebb77ba3cfc0255db868951f7e2467fb59b5a
MD5 c1085b728818e27451f59c8854b28974
BLAKE2b-256 d61ba396606f54995403e4cabc794ade87a52ae312be51a98c6b96c229db183d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.23-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3b323334d1aa23f561adcc60f95f95f7d868ce7f6687a7133021f0f777cdb991
MD5 4bf326fc4a8344382d44ed0034972dc1
BLAKE2b-256 3e5b9f3cc316a3000f8f90f23a7a7a1fb19c7f2bf4b3c613bd3339331f963eb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.23-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ddc312530ee73d0e05f618b812a2cafc67e7770abce77d85b86f374161289492
MD5 7cdbe9a174a12b49fb5693a1be3957cb
BLAKE2b-256 aa723a5b25ffe02a8d2a1d7393b1f73506333850dc05020d584ecd1a419e76b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.23-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 89.9 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.23-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 dfe705428a140179751be4f396f841dc32cac5d83ef184613864fa60f88171a0
MD5 5800715afbc7acfb70784a0891ef269e
BLAKE2b-256 c99809ef3bca65b3959c54138375ad531600b02a1f46fdf4031540d93bc56140

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.23-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 af26de409ed3a02a18699966bb6355e56821d0ec1b8bc4fc65fa1dca09ba15ba
MD5 a746a41b94fbbf1f459032aa69133c2f
BLAKE2b-256 3bb56b2145c031a0722858eab90fe2783103f7ac5db25b5896070ad33c163c9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.23-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ff0198de918b0711a346664b2b079372a001f7f0ec14ab9ed79c8c448ce37728
MD5 4c0a5b263f563f30d44aedef932245ac
BLAKE2b-256 eca7bf21d7aa9ada3eb9f4b93230ef4ef19ecdc88c83589875280140904c5b3b

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