private static List <Line> GenerateFillSquare(Options opt)
        {
            var lowerX = opt.CenterX - opt.Width / 2;
            var lowerY = opt.CenterY;

            ;
            var lowerZ = opt.CenterZ - opt.Width / 2;

            var upperX = opt.CenterX + opt.Width / 2;
            var upperY = lowerY + opt.Height - 1;

            ;
            var upperZ = opt.CenterZ + opt.Width / 2;

            return
                (SphereGenerator.SplitLinesIntoMaxSizes(new List <Line>
            {
                new Line
                {
                    Block = opt.Block,
                    Start = new Point {
                        X = lowerX, Y = lowerY, Z = lowerZ
                    },
                    End = new Point {
                        X = upperX, Y = upperY, Z = upperZ
                    }
                }
            }));
        }
Exemple #2
0
 public List <Line> TransformToLines(List <Point> points, Options options)
 {
     return(SphereGenerator.LinesFromPoints(points, options));
 }