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.2.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.2-cp313-abi3-win_amd64.whl (8.1 MB view details)

Uploaded CPython 3.13+Windows x86-64

geogram-0.0.2-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.2-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.2-cp313-abi3-macosx_11_0_arm64.whl (6.6 MB view details)

Uploaded CPython 3.13+macOS 11.0+ ARM64

geogram-0.0.2-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.2.tar.gz.

File metadata

  • Download URL: geogram-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e79a2dcd4e021ed1bd5c6b53325c629c42e2d30624af0f75f61923c1eb66c4ba
MD5 43903c3ed5a6731329b7bdb3eba6e0b7
BLAKE2b-256 0ec12a0e5aebbba207db11746d460433c00aef6e77cf290323af83438fb39e3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for geogram-0.0.2.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.2-cp313-abi3-win_amd64.whl.

File metadata

  • Download URL: geogram-0.0.2-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.2-cp313-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 65819050f968b7998280af8498f25f054206565524e5a01a900f51a5a876036c
MD5 4d1efb5a42637f51e2c58b8b35d6e00d
BLAKE2b-256 f96f4c2a5b7cff0f148899b5f47da09bf8cc52c2c885784747b23b88190f039d

See more details on using hashes here.

Provenance

The following attestation bundles were made for geogram-0.0.2-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.2-cp313-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for geogram-0.0.2-cp313-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 454d3329469b3f5327700858d23abba65c84cd6c4f5210cecd5e00343512a727
MD5 f02484934733e83179466e139df6757f
BLAKE2b-256 f3985b11429b546eb50cdc27a6138cb866fce3162fe24d152e0a4f70ed6cd87f

See more details on using hashes here.

Provenance

The following attestation bundles were made for geogram-0.0.2-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.2-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for geogram-0.0.2-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cdb8c8a9e91c025a98def418b9a1793d18f85ead27bcd18cb0ab0bbba48575b4
MD5 41683b531ee036bde0a5fb03cf2fab0a
BLAKE2b-256 8c35ae5ac38b1a9bccab720b80811458e8a171a7a04e4de7ac49d31fa9b3478f

See more details on using hashes here.

Provenance

The following attestation bundles were made for geogram-0.0.2-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.2-cp313-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for geogram-0.0.2-cp313-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3405b5f2521d8ed54ae386b1a0a09488b28d94823db5a10e9ca863eb5c2f656c
MD5 e832d75f0e8825a6c42ff67c76975c9c
BLAKE2b-256 a4568b606654dbfc1d80f2379fc3d30c314fdd859ca2f1ac6c082401ef689f92

See more details on using hashes here.

Provenance

The following attestation bundles were made for geogram-0.0.2-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.2-cp313-abi3-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for geogram-0.0.2-cp313-abi3-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 e7f6fba15288530a1228af4230c75541bf952de6b602ce6fa092a382873ad032
MD5 efcea4a75c524252048a5ab209e0b7ae
BLAKE2b-256 98c14c5c183fccf30abfda68bfc1e0ccca7023a202451e5c58861284a5e6f842

See more details on using hashes here.

Provenance

The following attestation bundles were made for geogram-0.0.2-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