boundvor
A minimal Python library that provides a wrapper for scipy.spatial.Voronoi, clipping the resulting cells to a bounding polygon.
Installation
Install the package using pip:
pip install boundvor
Usage
import numpy as np
from boundvor import BoundedVoronoi
# Generate random points
points = np.random.rand(10, 2)
# Define a bounding box
bounding_box = np.array([[0., 0.], [0., 1.], [1., 1.], [1., 0.]])
# Create a bounded Voronoi diagram
voronoi = BoundedVoronoi(points, bounds=bounding_box)
License
MIT License
Metadata
Release files for boundvor 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| boundvor-0.1.1.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| boundvor-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.0 kB
Release files / boundvor-0.1.1.tar.gz
| Download URL | boundvor-0.1.1.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cd2a2054daa01c1765cd3b5599987bf11f71ea3af5edd879e49c4b8db427da5b
|
|
BLAKE2b-256 checksum How to use checksums |
e5b1fedaf29b78cee3098ef9e3749ed384fd3c890dda42c8859574d2038dd386
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / boundvor-0.1.1-py3-none-any.whl
| Download URL | boundvor-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fccf74001bcc6c94d6732881918ba172044f1a5b3cd88cab4fe5804b529a09b5
|
|
BLAKE2b-256 checksum How to use checksums |
6081be224b8701ad9b896cf3de5d7eb18c5fa0e2d41909a584018274a7945669
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|