Exemple #1
0
        public PoissonDisc(string name, Commands cmds, GLNames glNames)
        {
            // PARSE COMMAND VALUES SPECIFIED BY THE USER

            this.name = name;
            Convert(cmds, "name", ref this.name);
            Convert(cmds, "maxPoints", ref maxPoints);
            Convert(cmds, "nPoints", ref maxPoints);
            Convert(cmds, "minRadius", ref minRadius);
            Convert(cmds, "minDist", ref minRadius);

            // CREATE POISSON DISK

            points = Disc.Generate(maxPoints, minRadius);
        }