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

Uploaded CPython 3.13Windows x86-64

pycglib-0.3.1-cp313-cp313-manylinux_2_34_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

pycglib-0.3.1-cp313-cp313-macosx_15_0_arm64.whl (1.0 MB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.3.1-cp312-cp312-win_amd64.whl (565.1 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.3.1-cp312-cp312-manylinux_2_34_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

pycglib-0.3.1-cp312-cp312-macosx_15_0_arm64.whl (1.0 MB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.3.1-cp311-cp311-win_amd64.whl (560.9 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.3.1-cp311-cp311-manylinux_2_34_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

pycglib-0.3.1-cp311-cp311-macosx_15_0_arm64.whl (1.0 MB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.3.1-cp310-cp310-win_amd64.whl (559.8 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.3.1-cp310-cp310-manylinux_2_34_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

pycglib-0.3.1-cp310-cp310-macosx_15_0_arm64.whl (1.0 MB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.3.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 565.0 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pycglib-0.3.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 74ff802fb60ecb712a22cfceea68595be322413d8b89fd2fb627e9314cbbeee7
MD5 3b6a390c5401aed02cd40add1d8998a2
BLAKE2b-256 172cdf0329410ca221acd0a0b1d4ef487db0d1f4a831acd7b60aef93aff2a14b

See more details on using hashes here.

File details

Details for the file pycglib-0.3.1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.3.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c54dc548b2d4ffc1a96d1c2fbc950eedb775c1fd160f4d296ed13477c5fe8738
MD5 99cb59fe0fba4d4de7f26e8286ab40c3
BLAKE2b-256 c6cfe96e1c2582667e4b9bb018be736b7fc37e1d00892b4b3a8190f0b3b380a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.1-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 6ba22a10804bf028f2b32d74d51815e77a4839df4c1090081099d41502fcc6dd
MD5 e0b2d52bf256e589fb744cbc7c49ec75
BLAKE2b-256 07e5983db0170622a48f37460492a6dc6bdd1a4ddb23445903f3fd6a433d329e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.3.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 565.1 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pycglib-0.3.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 67836b9036716fb66f14ae8d1c7c6eb253ea4ada38d23f5634fb4d2457d21463
MD5 cbc60bec116116d98d076fd39c09e218
BLAKE2b-256 9f1193627169595cb29356713fd08a66e280869406a2416a16902e42564c8206

See more details on using hashes here.

File details

Details for the file pycglib-0.3.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.3.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 ca1e00d3e9489926701b82cc2b83cedc01d5c0eb36e6a6117d2bc15fdf1ff9cb
MD5 426f7140c4549896efccef9185c5d110
BLAKE2b-256 55d3af394b68336ce393d0ff37f60a926f9fe599fba3c74917d268721af909c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.1-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 86a819e4f9f403f602d86bbae19f8e0677e80b7f2e1a79f454ff4a4eaa084d6b
MD5 d499a2de8dd0b59bd39b19d9353cf108
BLAKE2b-256 c7791ab8a8aa412e38c3ad5fb4860f6b4c9e3006c85b1b2d896b41bc36e21fff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.3.1-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 560.9 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pycglib-0.3.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0af5241f8df2a31ac2d064f53606b5bf9c36d029e087ce2244c7ae08a8f071fc
MD5 83a3c8cc9fcf643683e2807a3eade474
BLAKE2b-256 242d5e0d8aff51271f516010b6ef203f5276e58acce7e90f7ec0cfa0ba073561

See more details on using hashes here.

File details

Details for the file pycglib-0.3.1-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.3.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 184bfd6491ee3d35a9fba5d18c60af71562845a794194a438703f55a0c500689
MD5 c01d7cb0388e96b2b1096895d3b86b69
BLAKE2b-256 3834b1ab5e579682b05e107bf9700aa93fb9de818f2463280d7da9bab28e0f1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.1-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 b16894330f4188e196429ff4f0f55bce3c4406e1112d7de269d64d436dc81793
MD5 e139f69f477452b1afe0190cc1191cac
BLAKE2b-256 098c6e53235e1d00922299e2b6ac0e5d5fe18293b040557815cc51b0ea978bc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.3.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 559.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pycglib-0.3.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d7e596e9a83aff2085c2c6e9180a55abeb38bd5b245986b6c6c878a47dd9c93f
MD5 960575ccc931de473b8e752a29fb7c54
BLAKE2b-256 e9d2988e726516ec6f1e509df6978a885c7aa493cb58201295027fedd7d85b58

See more details on using hashes here.

File details

Details for the file pycglib-0.3.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for pycglib-0.3.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1ec63055d7c3162a869dec060d83a4bd0b118589089ac501a959a69151cd385e
MD5 7e24799ec67d2f2a74acf21254e6a1db
BLAKE2b-256 692f40a18610766411f0730f98ff27b31c036134f6216a60acaa3938a3b145de

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.3.1-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ce5aacc341ff918aede5b698eecbbd8b7540141060c7b49261fea73ab7de6064
MD5 3cdbe5a4a70ffe254ad5e4e957aa52ea
BLAKE2b-256 72a05781a4013d2f42b8af730896962254b4277cbde92342bdf2bbe03aeb9b43

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