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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.47-cp313-cp313-manylinux_2_28_x86_64.whl (837.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.47-cp313-cp313-macosx_15_0_arm64.whl (687.0 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.47-cp312-cp312-win_amd64.whl (257.4 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.47-cp312-cp312-manylinux_2_28_x86_64.whl (837.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.47-cp312-cp312-macosx_15_0_arm64.whl (687.0 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.47-cp311-cp311-win_amd64.whl (258.8 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.47-cp311-cp311-manylinux_2_28_x86_64.whl (837.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.47-cp311-cp311-macosx_15_0_arm64.whl (685.6 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.47-cp310-cp310-win_amd64.whl (258.0 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.47-cp310-cp310-manylinux_2_28_x86_64.whl (836.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.47-cp310-cp310-macosx_15_0_arm64.whl (684.6 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.47-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 257.5 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.47-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 a87baf030beb2d2f123bc65acffa1947f099c600680a5d7ea835968dfdfbd8ac
MD5 2efa07da5ce6a3d982e9ba4d55e48718
BLAKE2b-256 bed2754ea3bbdf842eca6384ca81b824cb9bcafc013e6928ba2b9a1855119017

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.47-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 629dc7a420e454a7d9aee995806cb6e962ba2d73242565ed74ff4439d8e41c29
MD5 16e18e3d33cdf724575b7a4e9023d5f6
BLAKE2b-256 c70158790dfec885138d402d42c4937b5810cd0c7a4b89ed3ab4ee85eccca364

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.47-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 86e1aec647eabecd42baea1bb95739af1499abe1f4033a88bb90acc33cf2f47d
MD5 92c97c1fb9900e5f61b695d67202be97
BLAKE2b-256 048c5d9f3ef7c24e74c154dd9c67c4ad9b3dd039d97c8b2ef44577f7962b0ff9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.47-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 257.4 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.47-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 860f95d7de7bb1930e2e69c8c8a5e6a9394321d99da1cbf5d482ac344bbc03f7
MD5 54d697d0e7e7cc1c5f3955d970a5552a
BLAKE2b-256 c7354e7f8edcf04c97159a4b567dfbaea3d86287a64200044f5a05968f8afe14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.47-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1ab18d0fbdeea9d537b55dd719f5060413feb31c080e05930a4218a4b8e2799a
MD5 b151da66b494e1fb5deaa3654226a7ea
BLAKE2b-256 acbe5db8b1fe7be24ed0bd3beb1ad6478870583ec581fb4bd288cf9f5dd0e773

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.47-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 397ea12bc54dcf0709df11a7a29edee8d8b63af686451584a86d8dd21dbf702c
MD5 694bb1e74eb820129e9b65ab499fb008
BLAKE2b-256 1338c7fc46c2c764df8791b354412083acd437afc9e40f31db286e3b958512d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.47-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 258.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.47-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4b5021cf4f7383b0f71fd6deae3dcc5c469a35bf245bab5671e5705927bc5273
MD5 5ff1d82aea8565e3218f6ecd5fe904db
BLAKE2b-256 eafdfda6799b8d2764f2289c1676e2852ecd6fe27d4e22d3e37cff984e0ff406

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.47-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1abf1108810a14719ae02741a6fd220111c10df0b0f9c4f845cdb11f1b8558e8
MD5 18e491ca3e5a37b79471b7fc7c131b8d
BLAKE2b-256 ca5e895cd329bd3d72365fe1144eb3e97dd51b02d588f8f52fbad033e3b2d208

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.47-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 b03220d64f6df667edb75fdd131f854dee3e5b03611f853c031410a778cc0c5a
MD5 c26d19ca0c1dc0bc795001b5e7786dbf
BLAKE2b-256 e71263a8ee41f7f8fd67e4e6092ba1e19bc5da27cbcfd9ea2c08a6948892694a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.47-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 258.0 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.47-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2d7cc9958635c86fa4f2b2e87b7ff88f4122ef76778a959390d87b606cf26a7c
MD5 7fa20e4c7ec9f1e8ef192a8445646116
BLAKE2b-256 bbbb29f26cf1c6d5c66beff81b478dd09d830d6d3bbe3b5b9b3742919a9cecad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.47-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1f20079d3648763c7b427da3a0584e68847bcf2f5fb1e9b205e3620d456bd90b
MD5 ece1276919c31fd2b4e3b65afd24cd67
BLAKE2b-256 bed6d448bed551225349d444eaf1208e18476d819814d08861fdea126e8bb6e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.47-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 2d27b60551cdcf1796a0d01c6a6a25dd25ef8cfafe373fa5b31b050a34f1e3b5
MD5 8d54e78e6b1766ef3b0b968a1622d9ea
BLAKE2b-256 570d4e50d9136a01fd69ed7282250552f2f77b9fdc7f881549d5c53cfb057f22

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