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

Uploaded CPython 3.13Windows x86-64

pycglib-0.1.36-cp313-cp313-manylinux_2_28_x86_64.whl (735.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

pycglib-0.1.36-cp313-cp313-macosx_15_0_arm64.whl (600.0 kB view details)

Uploaded CPython 3.13macOS 15.0+ ARM64

pycglib-0.1.36-cp312-cp312-win_amd64.whl (182.4 kB view details)

Uploaded CPython 3.12Windows x86-64

pycglib-0.1.36-cp312-cp312-manylinux_2_28_x86_64.whl (735.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pycglib-0.1.36-cp312-cp312-macosx_15_0_arm64.whl (600.0 kB view details)

Uploaded CPython 3.12macOS 15.0+ ARM64

pycglib-0.1.36-cp311-cp311-win_amd64.whl (182.7 kB view details)

Uploaded CPython 3.11Windows x86-64

pycglib-0.1.36-cp311-cp311-manylinux_2_28_x86_64.whl (735.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pycglib-0.1.36-cp311-cp311-macosx_15_0_arm64.whl (599.6 kB view details)

Uploaded CPython 3.11macOS 15.0+ ARM64

pycglib-0.1.36-cp310-cp310-win_amd64.whl (182.3 kB view details)

Uploaded CPython 3.10Windows x86-64

pycglib-0.1.36-cp310-cp310-manylinux_2_28_x86_64.whl (734.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pycglib-0.1.36-cp310-cp310-macosx_15_0_arm64.whl (598.3 kB view details)

Uploaded CPython 3.10macOS 15.0+ ARM64

File details

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

File metadata

  • Download URL: pycglib-0.1.36-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 182.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.36-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 046ad462bbc99c5267567d7f001b7ec4ec28c24b02c971585112e8f0f5a917d2
MD5 48187dcd429deab4089b4bbcb6aed18f
BLAKE2b-256 63145ec679bccf477a99fe8631ec9b63763a0f6a6b2394f689bc9ea2de83af89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.36-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2b30e5b916ae1b28940382b2da5174ca7bf656f9a51cd71f9d8d764657452c1c
MD5 149cdf2e38ce18d5a7d86b7ebb8ef82f
BLAKE2b-256 e8d6a7c89b5ab616ac5a705faef74e34eb146fab353b17b921fbee605ccc807d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.36-cp313-cp313-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 4f206cad1dbbdaf1fc44242c2693e4997f4cb4234343b0d97a21569f7ce8530b
MD5 00cc84c6aa9023368a6e037c7c128f26
BLAKE2b-256 3b84f0a3f5e8d38db47a319baba0417298dbb7f920a87ead4e5aa1781719dbdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.36-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 182.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.36-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5d196c00aa4ab6bf7a208c654ab8a71372ba0eb4b023a40a532b346a71277d0e
MD5 afec5e641af6152171403e621c8c0335
BLAKE2b-256 f8832b5cef7ec3c37144be6430b9dca7b946fb90859543e19cc9d91ade56c6ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.36-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1cfde3c1269f4862b67eaac84805708e3b0e4fa0d0188c270233c3132f819970
MD5 c1b21dd0eeb554c91fa143067e37e37d
BLAKE2b-256 e73fdda36597a3817707556baf74a52d9be92e379431191fe03ffb29a191afbf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.36-cp312-cp312-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 9a5baf81097b0eab936477af498b6a7ce0c2b3e12bf97e3411c1a61dff8a0940
MD5 04334d30fda86671d83283729eec07af
BLAKE2b-256 422fd677ab6c7b2c866569b55483e3044c73cbeb18d3ff5277ab58f4bf8c62ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.36-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 182.7 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.36-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 22378c991dcf3396322fe0f0ac585f8a4f0aed212020889d8ddf6b17c55dea8b
MD5 5577cfa45ca43749634910dd35e390f4
BLAKE2b-256 dc2e4d58fd0cd721f43cad750842f5a370ef14cbb64964c8587e9bb682186cdc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.36-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bb06e60ef1284b6304fdb9c44d8d422e8d2a71395524216a5e4dc74acc63f781
MD5 b0910d2c6bc41d0f5064714a2cc54381
BLAKE2b-256 d4754e95d231101cabc4e801a85b515fcb76aabd9c53b7af192e109afe5758f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.36-cp311-cp311-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 9b9e74dc55e395b81b041ff6b832bd96b119709aec63786783e837a7a263838d
MD5 54301d2e1103a545f5d2956253aadf63
BLAKE2b-256 69683a6e47e53e3d20717a88f66a4787d998b862e376311449c2f66270ae932a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pycglib-0.1.36-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 182.3 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.36-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e3c3fa08fd2acebbabdef5190ac037b41af7424f7b6f76b37eabddc6690a3692
MD5 a462b940973929bec13d15f1b494f230
BLAKE2b-256 95aa2778006e61816ef226de741eb1e8de559a9b0c96f2c3535f489b14ac6ce3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.36-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7c94ef504ec728e60fad38baed9f09336b2ed5d0d233db8198e7448e9ec8867f
MD5 22e095e513f7f1c70d50077d827f764e
BLAKE2b-256 42bd54a142cea313eabf7da157d2b0a0c3cb2501ece8474ecad72d0f714d158e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pycglib-0.1.36-cp310-cp310-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 3f608d81bebaf85323421c703feeac64f09ac5b2cec3d8394f0e522c005c4e6c
MD5 b8ca1716f39bcee26754a1eccccf7f02
BLAKE2b-256 4b0dddd61883f75de42fd4c4a94e240c8a945709208ed2bd40c6e790141f32f3

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