/** * Spherical Voronoi diagram — a consumer of the 3-D convex hull. * * For points on a sphere, the convex hull of the points IS the spherical * Delaunay triangulation; the Voronoi vertices are the circumcenters of the * hull facets projected onto the sphere (equivalently, the facet normals scaled * to the sphere radius). `sphericalVoronoi` returns those vertices, each * generator's region (as an ordered ring of vertex indices), and the geodesic * area of each region. * * Pinned against `scipy.spatial.SphericalVoronoi` (vertex count `= 2N − 4` and * region areas summing to `4πr²`) in * `functions/tests/geometry-consumers-oracle.test.ts`. * * @packageDocumentation */ /** Structured spherical-Voronoi result (mirrors `scipy.spatial.SphericalVoronoi`). */ export interface SphericalVoronoiResult { /** Voronoi vertices on the sphere (the hull facets' circumcenters). */ vertices: number[][]; /** * Per input point: the ordered ring of vertex indices (into * {@link SphericalVoronoiResult.vertices}) bounding that generator's cell. */ regions: number[][]; /** Per input point: the geodesic (surface) area of its Voronoi cell. */ areas: number[]; } /** * Spherical Voronoi diagram of points on a sphere. * * @param points - Array of `[x, y, z]` points on (or near) the sphere. At least * 4 points, not all coplanar with the centre. * @param radius - Sphere radius (default `1`). * @param center - Sphere centre (default origin). * @returns A {@link SphericalVoronoiResult}. * @throws When given fewer than 4 points or a non-3-D point set. */ export declare function sphericalVoronoi(points: number[][], radius?: number, center?: number[]): SphericalVoronoiResult; //# sourceMappingURL=spherical-voronoi.d.ts.map