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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.42-cp313-cp313-manylinux_2_28_x86_64.whl (792.7 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.42-cp313-cp313-macosx_15_0_arm64.whl (647.1 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.42-cp312-cp312-win_amd64.whl (223.7 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.42-cp312-cp312-manylinux_2_28_x86_64.whl (792.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.42-cp312-cp312-macosx_15_0_arm64.whl (647.1 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.42-cp311-cp311-win_amd64.whl (224.8 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.42-cp311-cp311-manylinux_2_28_x86_64.whl (793.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.42-cp311-cp311-macosx_15_0_arm64.whl (646.4 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.42-cp310-cp310-win_amd64.whl (224.1 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.42-cp310-cp310-manylinux_2_28_x86_64.whl (791.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.42-cp310-cp310-macosx_15_0_arm64.whl (645.2 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.42-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 223.7 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.42-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0176f24af3495f8547dfe46ac9f1ce7fc0bc401411bd9521bb6569d1bdd08dc7
MD5 592c76ab084906833b56ea5dce020927
BLAKE2b-256 cd283c0fbd3d5194005a09f93285e506dee41070858cee4481d2c0c7c2f3735c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.42-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 86dc8d980a0891ed3143adfa577c6617a41355aa12110f3862166c6a6a96e5d4
MD5 3f1f2792487837d43f0680fddadd124f
BLAKE2b-256 628c5095fa62838a3837fba18f6b9137eaecc04b0b95dfa658c3f85353cf7b97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.42-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 fd7aea295627a33ff721335831e7b7b5b3dc373ebff509d3f7cb9f732139b604
MD5 05798c2dc022bc0d17630e9a7f47c85a
BLAKE2b-256 af01b0b4248f1ff0d9106ed1595ad0cb70071079414696330dfd8bbc1d8337c4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.42-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 223.7 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.42-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bad4aeabb889d38a1247274afe385eae5fdaf06ccb8875827062ed103ff3b2fb
MD5 0f6643cc320dce1a989e7e4357bd6141
BLAKE2b-256 df09caf2ef3d9a44d9b39444e4bca1260a8528e2391ec0daf4f18e2c38f3db68

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.42-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eac07b008151736c065ae88d7ca468a961358d67748eb643b6fadf06be819891
MD5 a274e893e1bdf79a1a8508d4393313e0
BLAKE2b-256 ea2654e0e24d66c74abaebee2598ff7967999c9c594df801106ed99282ea1406

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.42-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 de895a080f5838ad1cb5cb6cc420393dd6a49b7790cd4759e59b7dfb7e54391b
MD5 3ba84ea975ac7ce4f86bb678110fa090
BLAKE2b-256 4f5d1efca57b155bd71395828ec504f4c81a39af5a00fb7819ecbf740bd8f25c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.42-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 224.8 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.42-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d8e3fcf5d7563731b20ffb70dc375096cf47b225d0a9a348841f9c1ccb7ddf31
MD5 0ceba1120258744ccf8e9e0458a3ac86
BLAKE2b-256 0afc6732f36e987d2771cd14b38c154c301bf87f4e712583d393059874561af6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.42-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 026b09d3d3d2fdec8c3b5de4c02cd544820def968ec05dff34c92a45bb3c8bd9
MD5 7dcaaad4390386dc8590a266c30c75c6
BLAKE2b-256 fe03e4588930a29eb227ae884d9e9061330a0d7f5b1b226199a6f49e689b4b7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.42-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 7517371434e689e0d38ddf200d2ca2e4d193baa3c0697e237107a8c6c144e9ed
MD5 74bfb0ceb96019ff7676ac2c8b02d452
BLAKE2b-256 22428dfe467cffe3ed39d1fcbf16d6d293d96c19d219b5bddac5451fec69b7e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.42-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 224.1 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.42-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 337d2ebd39b8f773219316729e786871e2fea88055d4af06b04d13bcdfd3c9c1
MD5 29c735d036056220d057e63d22dc3449
BLAKE2b-256 e0c4457b73ae36288a35250608ddf7650b3698a4d81902bdea10bfa920a67464

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.42-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d9be9264ee2e256c6397ef6126e28da66db8bf87998fb17902afc639b5353d37
MD5 ab2e8316a13d3321c5550cdc6c40b736
BLAKE2b-256 ea0925c49bf51000525ae528a5d914403e3cb8b791ebffde69d4489b95aed040

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.42-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 82de51412b540fe3a70427f4bd031a5eed2ae003d3088f725e97754792bdfd1e
MD5 7f16801a58f7fcc192aeb1d4b44c5a62
BLAKE2b-256 7b04f26fb0ce4d4a326bbd4fd91404531c9cb43dfaaff31716cd4bea20b62136

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