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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.37-cp313-cp313-manylinux_2_28_x86_64.whl (758.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.37-cp313-cp313-macosx_15_0_arm64.whl (618.6 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.37-cp312-cp312-win_amd64.whl (201.9 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.37-cp312-cp312-manylinux_2_28_x86_64.whl (758.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.37-cp312-cp312-macosx_15_0_arm64.whl (618.6 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.37-cp311-cp311-win_amd64.whl (202.4 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.37-cp311-cp311-manylinux_2_28_x86_64.whl (758.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.37-cp311-cp311-macosx_15_0_arm64.whl (618.1 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.37-cp310-cp310-win_amd64.whl (201.8 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.37-cp310-cp310-manylinux_2_28_x86_64.whl (757.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.37-cp310-cp310-macosx_15_0_arm64.whl (616.9 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.37-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 202.0 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.37-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 df978d3bbd0e2e4aa25473ba8247bcac1479b553d718cfecc58aad5ba2beee31
MD5 ce5bdfb85889bb48437ee71f24267acd
BLAKE2b-256 b42da9f9b1e1406e45fd2c516a30abe3f30691a4d30afa904e9389a3aa7a86ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.37-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9480ab0d8135a177dceb2a59a31b60ef01fcc094bf62c9e745307d3a18f15309
MD5 52038347d5124df1ba5cb750f329659e
BLAKE2b-256 33e8c27a02a2d13f0bbfd522bfc25ff0493eca0bab59d429cd55033942ed7664

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.37-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 28056c5d78b29918c4d48cbbf934dd0483e7603a63ebbc36cda772f04c92087e
MD5 87b50896dbdce5c46c06dfec6e3fbbc1
BLAKE2b-256 d95c8a8a102a531fa8261fe00c0dc1d6ec9c5e9cceb6079dcea60b05f75a5bb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.37-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 201.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.37-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1be6c0fe78e236c166a3132086c69018b08eb5899fb0b0690c8ff5b7b813c47f
MD5 be90378b8405e5daed17a8f518ee59c6
BLAKE2b-256 01873b565434bf9d012c37fbfc51c07295e56694f1321b9932aeb39d509309cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.37-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f739cd34843932b8411f89cd8fc844eb2e7368523411044e667a35be52fb07ed
MD5 65130196bc65b351988bd6f897658e60
BLAKE2b-256 ec26cd1c5adeffd83fb7fe14b7976d804bfd914112550d4d45490e5a8f1625be

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.37-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c6d5b4014e6c0ca1dffa63298780c7378a38ff32e04e71f8ed53d9380028b4d2
MD5 9e0b3acbaff3135f972426bca3d4d4f1
BLAKE2b-256 9373fbb321e775ddfdd2f88ead95ddecbd71976fa9d16d78ae87bbb247dc2ed0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.37-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 202.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.37-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 dbe8decec4b19c07c0e7e58af1b2f1b44b77a699a61d40c941a5715d02a7f631
MD5 623e7e879821d7de3e4c835810958683
BLAKE2b-256 8e01ac43083f4eef8853408e4aaa1d46d524e1de9e9bb52ca6836ef7b928804b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.37-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d4fe1a784bfe158d2323f974437a721707f806f59c11b9aba07961b490fe6f80
MD5 31366d91cb3a0049a7f0ec4135bc3f27
BLAKE2b-256 1b297b55fcab5103f728c88f764277075d0d8a7648c0d66a7bf1467a33f0ab8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.37-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 f6385b8396a2d5bf21f2d477f747f7b005fd15edee21686f1a1627cfadc96730
MD5 a0c0f2d6082adf97032a2a43cc2e859f
BLAKE2b-256 1aedc9735658d55675f84bcfee43d5b506294454888acc5ff32cb2ef4f97fe0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.37-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 201.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.37-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 567a80ab029cc873c82000db6448f764f4e3242afede03082c1d9d772ffac472
MD5 127a9eab4f623846439fb4e38046013a
BLAKE2b-256 f797ade1d7fd0ea3a28bc0d72690d2c316a0fde02354b513a20982cf1d88c6fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.37-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c04fc604c19afa1699dc6bbb1d9794903060ee7d0fa2973f7c8d0a304908f957
MD5 68bb7b40de4e214624069b2f1591648a
BLAKE2b-256 26c83585d75287f3981a0b64cca2bfb2c7c7e175949d54546d6bf8e3bcf31934

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.37-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e3f3319a7e682f22aff6a84589b9b03af55b75993b5e3cdfc51c36ddaf620532
MD5 968cc759915da710794d02d747b0e1ba
BLAKE2b-256 ae05511adb436d1f6d940666a16a24f64abde4729da727f9449fbdfce85faa2a

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