Skip to main content

python geogram binding

Project description

pygeogram: python binding for geogram

This repos provides python bindings for geogram's state-of-the-art Voronoi diagram builder and related algorithms.

Pre-built binary wheels are provided on PyPI which can then be installed with

pip install geogram

Example

A 2D Laguerre diagram can be computed with:

import geogram as geo
import numpy as np

(vertices, triangles) = geo.shape.quad()

seeds = np.random.rand(10000, 2)
voronoi = geo.Voronoi(seeds, domain_vertices=vertices, domain_simplices=triangles)

Elements of the diagram are provided, regardless of the dimension through a decomposition of the diagram into simplices. It should not to be confused with the dual of the diagram, the Delaunay triangulation. Instead, each Voronoi cell is decomposed into a set of simplex:

  • q (#q, d): Voronoi vertices coordinates
  • t (#t, d): Simplices composing the Voronoi cells
  • tadj (#t, d): Simplex's neighbour index
  • tseed (#t): Simplex's corresponding seed index

Plotting the simplices edges t between the voronoi vertices q leads to

image image

See examples for additional notebooks.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geogram-0.0.3.tar.gz (15.4 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

geogram-0.0.3-cp313-abi3-win_amd64.whl (8.1 MB view details)

Uploaded CPython 3.13+Windows x86-64

geogram-0.0.3-cp313-abi3-musllinux_1_2_x86_64.whl (8.6 MB view details)

Uploaded CPython 3.13+musllinux: musl 1.2+ x86-64

geogram-0.0.3-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl (7.9 MB view details)

Uploaded CPython 3.13+manylinux: glibc 2.27+ x86-64manylinux: glibc 2.28+ x86-64

geogram-0.0.3-cp313-abi3-macosx_11_0_arm64.whl (6.6 MB view details)

Uploaded CPython 3.13+macOS 11.0+ ARM64

geogram-0.0.3-cp313-abi3-macosx_10_15_x86_64.whl (7.1 MB view details)

Uploaded CPython 3.13+macOS 10.15+ x86-64

File details

Details for the file geogram-0.0.3.tar.gz.

File metadata

  • Download URL: geogram-0.0.3.tar.gz
  • Upload date:
  • Size: 15.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for geogram-0.0.3.tar.gz
Algorithm Hash digest
SHA256 24e6f63e504ae69b5b4c433d0706d2097c905b4cd4cd7e4c95092033b0aebf0f
MD5 e3b8e9bf3bd79f686bb87641ac3a45ba
BLAKE2b-256 c428a3e97c2f4d6303ebe530e557e48c47130bfe189f22e905c7c56fcb904470

See more details on using hashes here.

Provenance

The following attestation bundles were made for geogram-0.0.3.tar.gz:

Publisher: wheels.yml on PlathC/pygeogram

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file geogram-0.0.3-cp313-abi3-win_amd64.whl.

File metadata

  • Download URL: geogram-0.0.3-cp313-abi3-win_amd64.whl
  • Upload date:
  • Size: 8.1 MB
  • Tags: CPython 3.13+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for geogram-0.0.3-cp313-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 16afd11c75efb782d608728595d32f6c57d04e67759096fef4883f384d2db9e4
MD5 b145af0e0d42b8eb0b7b1abcbc09fc97
BLAKE2b-256 645a249af8764a5d113dec70c1ea9aba59947bc0eeaca08284daf9563e685dd7

See more details on using hashes here.

Provenance

The following attestation bundles were made for geogram-0.0.3-cp313-abi3-win_amd64.whl:

Publisher: wheels.yml on PlathC/pygeogram

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file geogram-0.0.3-cp313-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for geogram-0.0.3-cp313-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8c50592af5938cec0ad5481502febf58fe1f349949fdb6e62c9e2dae50ebcbbc
MD5 43a5bec5fcd244f1d452561d6fe8a98b
BLAKE2b-256 4b117f326936c8282cfe23d1914716ade9e4285af0fec4da17e63039501d7acc

See more details on using hashes here.

Provenance

The following attestation bundles were made for geogram-0.0.3-cp313-abi3-musllinux_1_2_x86_64.whl:

Publisher: wheels.yml on PlathC/pygeogram

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file geogram-0.0.3-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for geogram-0.0.3-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1219a6c3602bc90e5ec818baa90a77d8bfb69c843caa1bbacb7bc9ad0233911e
MD5 6f894fcfaddca95e6ebce98d04ab65cf
BLAKE2b-256 d9969f57275e2ec653786ca71c71c7587db43bcc778953c77da3d5077650cae6

See more details on using hashes here.

Provenance

The following attestation bundles were made for geogram-0.0.3-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl:

Publisher: wheels.yml on PlathC/pygeogram

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file geogram-0.0.3-cp313-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for geogram-0.0.3-cp313-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e688f8271ef78195c4040f920dd3f95c06b7d706955c16f10036e0ba84025147
MD5 077e0f02cac387b0786e921d4309b9da
BLAKE2b-256 0720404d28f5db500d7cdc52805cbcb8b3f21f571a5476de516e351efe4ff3a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for geogram-0.0.3-cp313-abi3-macosx_11_0_arm64.whl:

Publisher: wheels.yml on PlathC/pygeogram

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file geogram-0.0.3-cp313-abi3-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for geogram-0.0.3-cp313-abi3-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 a9ac7868b21b0ceaad74d89251f179fdbfd7cda63e00c88c97bd5bfd56336ba6
MD5 ab64b22861f97db71e050e6f49bdac5b
BLAKE2b-256 ee94b874c64c083147089a07b18379997dc345059b6f7a54288b787c0084bafb

See more details on using hashes here.

Provenance

The following attestation bundles were made for geogram-0.0.3-cp313-abi3-macosx_10_15_x86_64.whl:

Publisher: wheels.yml on PlathC/pygeogram

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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