Exemplo n.º 1
0
        //
        // Initialize with the list of figures in the drawing. Do we need that knowledge?
        //
        public AreaSolutionGenerator(List <Figure> forest, List <AtomicRegion> atoms)
        {
            topShapeForest = forest;
            figureAtoms    = atoms;
            figureIndexMap = new Dictionary <IndexList, Figure>();

            // The initial size of the solution dictionary.
            int initSize = (int)Math.Min(Math.Pow(2, atoms.Count), Math.Pow(2, 12));

            solutions = new SolutionDatabase(initSize);
        }
Exemplo n.º 2
0
        //
        // Initialize with the list of figures in the drawing. Do we need that knowledge?
        //
        public AreaSolutionGenerator(List<Figure> forest, List<AtomicRegion> atoms)
        {
            topShapeForest = forest;
            figureAtoms = atoms;
            figureIndexMap = new Dictionary<IndexList, Figure>();

            // The initial size of the solution dictionary.
            int initSize = (int)Math.Min(Math.Pow(2, atoms.Count), Math.Pow(2, 12));

            solutions = new SolutionDatabase(initSize);
        }