The bounding box of the simulation.
The number of grid bins in the x direction.
The number of grid bins in the y direction.
ReadonlycellsReturns all cells.
Readonlycount_Returns the number of computed cells.
Readonlycount_Returns the number of generators.
ReadonlygeneratorsReturns all generators as a flat array.
Readonlyprune_Returns the prune log as a flat array [cell_id, neighbor_id, wall_id, ...].
Readonlyprune_Returns the intermediate generator positions from the prune log as a flat array [x, y, ...].
Readonlyseal_Returns the seal log as a flat array [cell_id, neighbor_id, wall_id, ...].
Calculates the Voronoi tessellation.
Calculates the Voronoi tessellation and seals the boundaries.
Removes all walls.
Gets a generator's position by index.
Runs a post-processing pass to prune the cell faces at the boundaries.
Generates random points within the bounds and walls.
Reads generators from a string representation.
Each line should contain an ID followed by coordinates (e.g., "id x y").
Performs one step of Lloyd's relaxation to smooth the cell distribution.
Updates a specific generator's position.
Sets the generator points.
A flat array of coordinates [x0, y0, x1, y1, ...].
Creates a new 2D tessellation.