Ejemplo n.º 1
0
    def analyze(self):
        """Performs contiguous area expansion and discovery in the layers."""
        for layer in self.layers:
            plotter = AreaPlotter(layer.grid, self.build_config)

            plotter.expand_fixed_size_areas()  # plot cells of d(5x5) format
            plotter.discover_areas()  # find contiguous areas

            layer.grid = plotter.grid  # update
    def analyze(self):
        """Performs contiguous area expansion and discovery in the layers."""
        for layer in self.layers:
            plotter = AreaPlotter(layer.grid, self.build_config)

            plotter.expand_fixed_size_areas()   # plot cells of d(5x5) format
            plotter.discover_areas()            # find contiguous areas

            layer.grid = plotter.grid           # update