Skip to main content

The Delaunay triangulation for PyTorch

Project description

Torch Delaunay - The Delaunay triangulation library for PyTorch

This is a fast library for computing Delaunay triangulation of 2-dimensional points.

The implementation is based on a sweep-algorithm, introduced by David Sinclair[^1] and later improved by Volodymyr Agafonkin[^2].

Installation

The library is distributed as PyPI package, to install the package, execute the following command:

pip install torch_delaunay

You can use the torch_delaunay library for a fast computation of Delaunay triangulation for points defined as PyTorch tensors.

Usage

import torch
from torch_delaunay.functional import shull2d

# Compute Delaunay triangulation for randomly-generated 2-dimensional points.
points = torch.rand((100, 2))
simplices = shull2d(simplices)

License

The Torch Delaunay is distributed under GPLv3 license. See the LICENSE file for full license text.

[^1]: David Sinclair - S-hull: a fast radial sweep-hull routine for Delaunay triangulation. [^2]: Volodymyr Agafonkin - Delaunator: An incredibly fast and robust JavaScript library for Delaunay triangulation of 2D points.

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

torch_delaunay-1.0.0rc2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.4 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

torch_delaunay-1.0.0rc2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.4 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

torch_delaunay-1.0.0rc2-cp312-cp312-macosx_11_0_arm64.whl (127.4 kB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

torch_delaunay-1.0.0rc2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.4 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

torch_delaunay-1.0.0rc2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.4 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

torch_delaunay-1.0.0rc2-cp311-cp311-macosx_11_0_arm64.whl (128.7 kB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

torch_delaunay-1.0.0rc2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

torch_delaunay-1.0.0rc2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.4 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

torch_delaunay-1.0.0rc2-cp310-cp310-macosx_11_0_arm64.whl (127.4 kB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

torch_delaunay-1.0.0rc2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

torch_delaunay-1.0.0rc2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (7.4 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

torch_delaunay-1.0.0rc2-cp39-cp39-macosx_11_0_arm64.whl (127.5 kB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

File details

Details for the file torch_delaunay-1.0.0rc2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for torch_delaunay-1.0.0rc2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3a177f3e239a5cbb0950b3924f8260310aa44865c9dbcf4cd86f94f61f822233
MD5 0a9645803c74b74b1ee77604e5faa948
BLAKE2b-256 b92231fa233dd877c8fb2d0694fea40038a5841f5957cf3338333ddb8c0b564b

See more details on using hashes here.

File details

Details for the file torch_delaunay-1.0.0rc2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for torch_delaunay-1.0.0rc2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 397a0bb9f6872aee7f878fa7ed0b6a67ba8c8d9a19df0541dd45644904eab5f0
MD5 c71024f21d1734a2b94182fbfe94e899
BLAKE2b-256 ea97604936d570aa73f380c222303f216a8ebc91c6e0931080801a462497dcd8

See more details on using hashes here.

File details

Details for the file torch_delaunay-1.0.0rc2-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for torch_delaunay-1.0.0rc2-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0280aa54666df9590c414f92641683b53c3689e973f1cfd3c5d64ec6de3c824d
MD5 465674711e47d807d200ff1cc065277f
BLAKE2b-256 f16408416a0a28440cc95e200a1f0cdd391702814a0129222b8bffa2e5edd108

See more details on using hashes here.

File details

Details for the file torch_delaunay-1.0.0rc2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for torch_delaunay-1.0.0rc2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0e8cde0bd7714fd559ca3cd2729b2f55d473df8cf4702943da9878fea5dea666
MD5 5143d1e53ed5675ef0cd8baef5768528
BLAKE2b-256 2c2a62670ad11189fd7960faff5063f1f4ba4bafb8981a36ffe804fa76db71c4

See more details on using hashes here.

File details

Details for the file torch_delaunay-1.0.0rc2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for torch_delaunay-1.0.0rc2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a513e6f4909d0e823f328bd75532b5d42594d256665a879a52ab7be5f897d593
MD5 619b3cd020c68ca950e8e62c260228c9
BLAKE2b-256 e1ffb909a8456d82c107c2a6fb833447ec2936fa7dc168d86e8c3474e79b0b17

See more details on using hashes here.

File details

Details for the file torch_delaunay-1.0.0rc2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for torch_delaunay-1.0.0rc2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9113bb98a004777ff576613eef77a27e3437882d601357988cb3b664f6bd6af1
MD5 40f4173698a877ab65c2269824a89cfe
BLAKE2b-256 3492c1671c94ccfeeac7955ebcf710d51a9f313f56ebaa22f50454cd3609086b

See more details on using hashes here.

File details

Details for the file torch_delaunay-1.0.0rc2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for torch_delaunay-1.0.0rc2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9b24cba9a036c7e1d8bc457ee275af2d4ac230ed81e56dd7b83d3d94d0f81bb0
MD5 121c47b938f5bc6d07cd8b7270754a72
BLAKE2b-256 084d28ef7a580d5c8a660a2a4804f3a7199239ebfb1b72657e9c0a7539f1d83e

See more details on using hashes here.

File details

Details for the file torch_delaunay-1.0.0rc2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for torch_delaunay-1.0.0rc2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 17430e6dd1a26e6401d7532f8064f4597bbc20b4815f055cb28bcbb9853315b1
MD5 40ec3fb71530da3b2d66c0aef90bb310
BLAKE2b-256 0693d2e0a85b1c7709ecd894f947bb67f30e4d5347ed0d7f470b925f3b18edff

See more details on using hashes here.

File details

Details for the file torch_delaunay-1.0.0rc2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for torch_delaunay-1.0.0rc2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 957aeef05b48d945d3d92b3293edf6a46e4e6225b0669b65e273981dfdda5b08
MD5 825f3e19fccc745a99da2b24b4f7d51b
BLAKE2b-256 2436ce5abf75388a6a01e25e31e21177e8faa4837bde94f2c8626595ea7bbbf6

See more details on using hashes here.

File details

Details for the file torch_delaunay-1.0.0rc2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for torch_delaunay-1.0.0rc2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6553cd105be848bf546b8e189dea24338efdbd7998b85c59c8a89036739e8223
MD5 69a6f151cc877f4f6bd4a4f38fb0ab5c
BLAKE2b-256 7ea0801410d8ea53902f8af52087f12cebc4ce872adeaeb978bceee6565a765f

See more details on using hashes here.

File details

Details for the file torch_delaunay-1.0.0rc2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for torch_delaunay-1.0.0rc2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8f6d3b677d316328f5831121153371f1143b2916e889fc6ce86f936d0591926f
MD5 5b522b611bd25e06069e37ae56d3dea3
BLAKE2b-256 7d046f8a35ceae000fc7ca8009c861e495472628c925c8a96404fdf5996d3f2d

See more details on using hashes here.

File details

Details for the file torch_delaunay-1.0.0rc2-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for torch_delaunay-1.0.0rc2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9e3cb6c9e292cb3ffc730a2e6f4e97326037fb44a683846a9420b1771392e92
MD5 132eedd9b0a1cfb5a971529de1144571
BLAKE2b-256 3da837bba5b846c7cd72c6affa9185ec375710a5f16e223a26aa9c137d8a962a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page