How this calculation works
Measure nearest-site regions on a sphere using great-circle boundaries. The calculator constructs the spherical Voronoi vertices and ordered cells, reports each area and verifies that their unit-sphere total is four pi. A separate radius scales the areas while the entered site directions remain unit vectors.
Hull outward facet normals are spherical Voronoi vertices. Area of triangle(a,b,c)=2 atan2(|a·(b×c)|,1+a·b+b·c+c·a); sum each cell fan; total=4πR².A worked example
Four tetrahedral unit directions partition the unit sphere into four congruent cells. Each unit area isπ, total4π, and each fraction is1/4. At radius R each area isπR².
Good to know
4–40 unit sites; radius0<R≤1e6. Floating supporting-hull-facet enumeration and solid-angle areas. Reject duplicate/near-duplicate sites<1e-7, affine-volume<1e-8, coplanar or near-cocircular four-site hull facets and ambiguous triangle branches. Cells are sorted around sites and area total checked against4π to1e-6. Reject rather than report unresolved degeneracy. No ellipsoidal Earth or weighted cells.
Reference: Method reference (opens in a new tab) ↗
Defining nearest sites on a sphere
For two unit vectors, angular separation is determined by their dot product. A point belongs to a site's spherical Voronoi cell when that site's dot product is at least as large as every competing site's dot product at that point.
Equal-distance boundaries lie in planes through the sphere center and therefore trace great circles. This is a spherical angular-distance model, without flattening coordinates to a plane or applying ellipsoidal corrections to a geographic map.
Compare this with the Voronoi diagram calculator from points with Delaunay dual. A planar Voronoi/Delaunay page does not represent spherical geodesic regions.
Entering directions separately from radius
Enter each site as a three-dimensional unit vector, with length within one part in one hundred million of one. The implementation normalizes that small accepted rounding discrepancy before constructing cells; arbitrary non-unit vectors are rejected.
The radius field controls physical area scaling only. A unit-sphere area of A becomes A times radius squared. Keeping the input directions unchanged while doubling radius multiplies every region area by four without changing adjacency or fractional coverage.
From supporting facets to Voronoi vertices
The sites define a three-dimensional convex hull. For each resolved triangular supporting facet, its outward unit normal is equidistant from the facet's three sites and no farther from them than from other sites; it supplies a spherical Voronoi vertex.
A site's incident vertices are ordered around its tangent direction to build its cell boundary. These vertices are directions on the original sphere, not the planar locations of hull facets; confusing the two constructions would give incorrect arcs and areas.
Summing spherical triangle areas
Each ordered cell is divided into triangles joining its site direction to consecutive boundary vertices. A triangle area is evaluated with the solid-angle atan2 formula, using the determinant and pairwise dot products of its three unit vectors.
The resulting values are unit-sphere areas in steradians. Summing the cell areas must give four pi within the stated numerical tolerance before a result is accepted; the displayed residual quantifies that conservation check rather than hiding it behind rounded percentages.
Checking the regular tetrahedral sites
The default directions are the four sign patterns (1,1,1), (1,−1,−1), (−1,1,−1) and (−1,−1,1), each divided by the square root of three. Their symmetry makes the four cells congruent.
The total unit area is four pi, so each region has area pi and covers one quarter of the sphere. At radius two, each area becomes four pi and the total becomes sixteen pi, giving a direct scaling check in addition to symmetry.
Why some configurations are rejected
The sites must be distinct and span a resolved three-dimensional affine hull. Coincident directions, nearly duplicate sites, coplanar configurations and nearly ambiguous spherical triangles can make topology or area branches numerically unreliable, so the calculator reports an unresolved input instead of inventing a cell.
This bounded implementation also rejects supporting hull facets containing four nearly coplanar sites. Such configurations can have valid Voronoi diagrams, but they require deliberate handling of higher-order vertices beyond this triangular-facet implementation; rejection does not mean the mathematical diagram fails to exist.
Interpreting coverage without overclaiming accuracy
Areas are floating-point results for the entered directions. A small total-area residual is a useful consistency check, but it is not a bound on every vertex coordinate or proof that a nearly degenerate adjacency has been classified correctly.
The supported range is four through forty sites with positive radius up to one million. No weighted sites, clipped service territories, terrain obstruction, ellipsoidal Earth distances or geographic longitude-to-vector conversion is inferred automatically from the input.
A few questions, answered
Should site coordinates be multiplied by the radius?
No. Enter unit directions and set radius separately; only reported areas scale by radius squared.
Why do all areas add to four pi on the unit sphere?
The cells partition the sphere, with shared boundaries having zero area.
Are sites restricted to one hemisphere?
No. Resolved full-dimensional sets are supported, including tested sets concentrated in one hemisphere.
Does a coplanar-facet rejection mean no diagram exists?
No. It identifies a configuration this triangular-facet implementation does not resolve.