cs.CGNov 25, 2026

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

Authors: Peihang Lin, Shanmei Wanyan, Mucheng Zhu, Ying Jiang, Chris H. Rycroft, Chenfanfu Jiang, Jiayin Lu

Organizations: Department of Mathematics, University of California, Los Angeles, Los Angeles, CA 90095, United States · Department of Statistics and Data Science, Yale University, New Haven, CT 06511, United States · Department of Mathematics, University of Wisconsin–Madison, Madison, WI 53706, United States · Mathematics Group, Lawrence Berkeley National Laboratory, Berkeley, CA 94720, United States

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. 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.

Figures & tables

Explore similar work

CardsList
  1. CVTSplat: Multi-view Reconstruction Using an Adaptive Centroidal Voronoi Tessellation

    Oct 26, 2026Briac Toussaint, Diego Thomas, Jean-Sébastien Franco +2Multi-View 3D Reconstruction

  2. Geometry-Aware Probabilistic Circuits via Voronoi Tessellations

    Mar 12, 2026Sahil Sidheekh, Sriraam NatarajanProbabilistic CircuitsDensity Estimation

  3. Differentiable Voxelization of Surface Representations

    Aug 16, 2026Tobias Djuren, Ugo Finnendahl, Markus Worchel +23D Mesh DeformationDifferentiable Optimization