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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.31-cp313-cp313-manylinux_2_28_x86_64.whl (693.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.31-cp313-cp313-macosx_15_0_arm64.whl (569.0 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.31-cp312-cp312-win_amd64.whl (152.4 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.31-cp312-cp312-manylinux_2_28_x86_64.whl (693.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.31-cp312-cp312-macosx_15_0_arm64.whl (568.9 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.31-cp311-cp311-win_amd64.whl (152.0 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.31-cp311-cp311-manylinux_2_28_x86_64.whl (693.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.31-cp311-cp311-macosx_15_0_arm64.whl (568.8 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.31-cp310-cp310-win_amd64.whl (151.4 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.31-cp310-cp310-manylinux_2_28_x86_64.whl (691.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.31-cp310-cp310-macosx_15_0_arm64.whl (567.6 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.31-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 152.4 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.31-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bd0edee24ea9b5e56e37faaa1fc14e277599d20fed86c1fba09f343692b8910a
MD5 dfe84a2985b54319f5d20d4ed8060819
BLAKE2b-256 385d5fb470f5913e46ae313ab5c67ecbf5da14b1b2669849ffc4ac2098bc3880

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.31-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 976d52b29da2f375b28de0af702ed0364a1c32cec9dd78304779980dfe9f6bb8
MD5 e8186c86e3956b16db8119038a375142
BLAKE2b-256 f375ea16603e28d2fbe8c926d3ce04607de1085f788678a9fd08d4490c8de561

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.31-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 000b77632717986673617043a9f17815af3eb66c76a388c0ba24baf49dee543e
MD5 cc8bd9764a9f5463a43f14ce32231e4b
BLAKE2b-256 519b293e90b86eaf7628afaa3f3a2689e35c0f5128aa56dd7d55b9ec5e8c1e16

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.31-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 152.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.31-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e1bd1100d68a7273ec799e7aeceb32a8e6031a95111ad1a594060b6254eec3e1
MD5 996e14961ea9b7dc577bde73b064d167
BLAKE2b-256 b5704e9bea54fe19a9c0a17611d1052c5a51b68268d15e3dd74d694d017eb15c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.31-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c2ca664e25342fb961c537ed9d18b0976839d9dcd7a6988f2be21ac1d395de02
MD5 83adacb415fceb49aeb407e0d0f6a90d
BLAKE2b-256 1dd6629256da1c7a73b35632a6dc046eac083189229689604339324d533ae0d4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.31-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ef921da65ab9509e4cde3f6b822238db821966ff7714a63bcdab0405d929c149
MD5 b3feae046cc28110619b59bd061e7bdb
BLAKE2b-256 64e225125c3638b6de0ece6803152c3d0a5415bf74d0f3f0059861cf52568552

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.31-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 152.0 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.31-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cb2d17aacdb1441421a59ee5dc2ab568e3ebb00ca99a722bcdcdf14ee8d72ff0
MD5 c0110dcdde5929f5b05e85c5ca01fc1c
BLAKE2b-256 4b87a313fb8c92a819112c1e54686fb151e10549b691733b3358d19ea0f9787c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.31-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5864d47a64c59b86deaf18b0cc33af9f8b44d96d5bf99ddb65295fb61efea4dd
MD5 62b4ad9e929d47c78849b389152d893c
BLAKE2b-256 747bf9943ada49224365b81b4b0fba799620ecf1ea584ff497b75be41c929ad7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.31-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 32c9b5ae99fecfe33eac07de5c647b991fa98c5fdbeac0aa09c8897561c40ddf
MD5 b0f9a6e21edb52da8ca4966e6f6ac275
BLAKE2b-256 457b8b78d913405f2acf336f78f1e1ecaaa983d0edcd42826337c42f20219afa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.31-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 151.4 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.31-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ff8f429b336b45df83cbfa7a472fb6fbb648e03274c1f309ecde737cf60fa0fc
MD5 99db372dec888b97d5d6fade3f4b9207
BLAKE2b-256 2f5ede3a3dd8c6750b194829cfa4f56b07002417e4ca7a7cfafe8080cdd6c02b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.31-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a2bc64e4e51bf7fe622ef442889e54f14f93022a17d1d4edafe01bdcbb70ed38
MD5 08734f898b8a6c5246d033e7ed33ae6f
BLAKE2b-256 063b4373c2504141c9e47bfd141c4f93a509d37126b78db4884892363e729f9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.31-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c8768acc7af37d4dc60e1be20ef5687d50db2e245b3ee33c357973ace0596ad0
MD5 66326c5078f2befbae2e90f3aeb76720
BLAKE2b-256 6ee79b395ce897e6a05f56e8d2c221ea30b3c57c49b72463138d729c57b55eaa

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