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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.55-cp313-cp313-manylinux_2_28_x86_64.whl (936.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.55-cp313-cp313-macosx_15_0_arm64.whl (766.3 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.55-cp312-cp312-win_amd64.whl (334.8 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.55-cp312-cp312-manylinux_2_28_x86_64.whl (935.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.55-cp312-cp312-macosx_15_0_arm64.whl (766.2 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.55-cp311-cp311-win_amd64.whl (333.3 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.55-cp311-cp311-manylinux_2_28_x86_64.whl (938.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.55-cp311-cp311-macosx_15_0_arm64.whl (764.9 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.55-cp310-cp310-win_amd64.whl (332.6 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.55-cp310-cp310-manylinux_2_28_x86_64.whl (937.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.55-cp310-cp310-macosx_15_0_arm64.whl (763.7 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.55-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 334.9 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.55-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d2fbbc80df8b19e0be31efe74e36c3611f32799da0a754eecf3db0e31cbfaf04
MD5 95f3f618bf483ffac66bbdc9360f7327
BLAKE2b-256 4159d5f2c20f98c1bd930f2c2bc82deef9f218433495f392989b5dab00ae49da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.55-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 588b14ff1ffc08525b6cb2d3b998606ed06d1a93473382e6d5fb3757987a4865
MD5 ab068c372b70fbde67ea2c545f9924ba
BLAKE2b-256 eb897f9b15722b407ea510d60b648acccac2e8f85db16a4115c34ff4b386a769

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.55-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 2411a103c81d10dc94e555c1faacf26f8b7fd566a4a90c34676bc0b4c8beeefe
MD5 1ae0088a2d39ed679856907d8414b8a5
BLAKE2b-256 729311e662b19702e274135aa7a7835aeb558ddc656f72c05e070f4d1eeb98e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.55-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 334.8 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.55-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e1326dc9e40ae6fcf030ac7a57e0e816ca6a21f66a8a5409a23a035a16345179
MD5 f450b5f49255f0c1af389c714e2e8032
BLAKE2b-256 81752466b2387282c85cb8dd19a0b3b590eb4d72da220c357c916ed86ae8b684

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.55-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 80af790e62e0506a4a9c12c5665a55728fa8a65fa497692846df76aa67b3915c
MD5 7e612971d91a14e9d6b759e5dde739e5
BLAKE2b-256 9e4a8ef80828a837cf62a9a57e220bfec9b1dd25699f58c812f3b0354517d085

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.55-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 d54136bbbf23ad95917fad0d8ea5ab3fee8aabca9e52f7a123b77b37702b3821
MD5 029a823df113a0cbf86963ec9641b5da
BLAKE2b-256 42a24c38642617852ac8a7240a8ee45bbd428a8a1f69b92f5c2bef041d3bf6ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.55-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 333.3 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.55-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2a4cb53b99feae6cb0e9148302c0ecabaf37c246f6a305343c40005f8b50bbd7
MD5 7ca742714e467d99e4b0e91cac67392b
BLAKE2b-256 9f9f16ba9340bcd94b1701601ca01d2d68a0d7f8a3c5a8c89b74ebddfe3d6143

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.55-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 70047f9643e59446513f87c9ce91f7caa03f1cb7d6b8c322ed060f237b637eb3
MD5 6d9619e3e66f5586b403047734e2cc8f
BLAKE2b-256 e747af336ce01009066fda66065f4533af347a2c704a9d850a5c955185de4a6b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.55-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 7b68b67218de398d3d847277581ceae95ae865b9c6b650ed12df8080b371c7c8
MD5 3eeb83aff77f99638712ff7b076bd427
BLAKE2b-256 371cfaf7ea509c65f4cddfce05c5c0b6878986f354f799971e40ff9cdade323d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.55-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 332.6 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.55-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6e1e66b857a122b7751cb8f1a2adbf6848f7fb7d07b790ad159f340c40b16165
MD5 8b6531ba3df5f106133dc8c06f27602f
BLAKE2b-256 c5e9c70a287d109b3099c355ca074d3138b63ad1a57f28675842d06a4bcc3179

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.55-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 35f61ec4a873b05efb4c9f4693106343a8609109aebe2cb2eb98cb7d2dde0c19
MD5 e0a5964120504c80b939b46cbfc85e97
BLAKE2b-256 6b36e86ba9f801634166329b7dfe6c28337b4d6ab0f3212c721accae290d64e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.55-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 e8726cfeab879cb3128c6823f0547a514a3f43da78328790540a74889ed2918b
MD5 3a0a7621082d8d1cce61fa009b491d7d
BLAKE2b-256 b7ae3142dd7abbec057a4f702b65ba248a5768af7cece8a83ddb9862787bae22

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