Maths.Voronoi2d
Planar Voronoi diagrams of weighted point sites (RH-79405), through RHC_GH2_WeightedVoronoi2d. The weighted distance from site i is (t*A_i + 1 - t) * |x - r_i| + (1 - t) * B_i: t = 0 is purely additive (hyperbolic arcs), t = 1 purely multiplicative (circular arcs).
Methods
Compute
#Compute the weighted Voronoi diagram of a set of sites.
public static Maths.Voronoi2d.Result Compute()
Point2d[]
sites,
Site locations.
double[]
multiplicativeWeights,
One positive weight per site, or null for all ones.
double[]
additiveWeights,
One weight per site, or null for all zeros.
blend,
0 for purely additive, 1 for purely multiplicative.
clip,
Clip rectangle in the XY plane, or null for the sites' box grown by a quarter.
tolerance,
Fit tolerance for the quartic edges; 0 or less for 1e-6 times the clip diagonal.
cells,
Whether to also assemble the cell loops.
token,
Cancellation token; when cancelled the method returns null without a failure.
out string
failureName,
Short failure title, or null.
out string
failureInfo
Failure details, or null.