VoroPlex: A Python Framework for Multi-Threaded and Differentiable Voronoi Tessellation

Peihang Lin, Shanmei Wanyan, Mucheng Zhu, Ying Jiang, Chris H. Rycroft +2 more
11/25/2026
cs.CGcs.DCcs.LG

No confident code implementation found for this paper.

Abstract

Voronoi tessellations are widely used in computational physics, for example to measure local structure in particle systems and to generate meshes. We present VoroPlex, an open-source Python package for computing Voronoi tessellations in two and three dimensions.

Show full abstract

VoroPlex is built on the multi-threaded version of the C++ library Voro++, so that large tessellations can be computed in parallel. The package also makes the tessellation differentiable. Each Voronoi vertex is labeled by the generators that define it, and VoroPlex uses these labels to compute the derivative of the vertex with respect to the positions of these generators. PyTorch can therefore compute gradients of quantities such as cell areas, volumes, and interface areas with respect to the generator positions, so that these quantities can be optimized using standard gradient-based methods. The package also includes tools for extracting interfaces between groups of cells and for exporting meshes. For one million points using 28 threads, VoroPlex is 46 times faster than SciPy in 2D and 39 times faster in 3D. We demonstrate the package with three applications: centroidal Voronoi tessellations with a variable density, meshing of 2D shapes defined by signed distance functions, and the design of foams with a preferred cell orientation.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lin2026voroplex,
  title  = {VoroPlex: A Python Framework for Multi-Threaded and Differentiable Voronoi Tessellation},
  author = {Peihang Lin and Shanmei Wanyan and Mucheng Zhu and Ying Jiang and Chris H. Rycroft and Chenfanfu Jiang and Jiayin Lu},
  year   = {2026},
  eprint = {2611.33829},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.33829v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.33829.svg)](https://codeofpaper.com/paper/2611.33829)

Discussion