Method GetCellMapWithRegion
GetCellMapWithRegion()
Evaluates the lines and returns both the cell map and a Region encompassing the drawn cells. This is more efficient than calling GetCellMap() and GetRegion(Dictionary<Point, Cell?>) separately as it builds both in a single pass through the canvas bounds.
public (Dictionary<Point, Cell?> CellMap, Region Region) GetCellMapWithRegion()