protected void SetData(FuncData3D <T> data)
        {
            if (data == null)
            {
                throw new ArgumentNullException("data");
            }

            this.data = data;
        }
        public FuncUniformDataSource3D(Func <int, int, int, T> dataGetter,
                                       double x  = 0, double xSize = 1,
                                       double y  = 0, double ySize = 1,
                                       double z  = 0, double zSize = 1,
                                       int width = 10, int height  = 10, int depth = 10)
        {
            this.data = new FuncData3D <T>(dataGetter);

            this.x     = x;
            this.xSize = xSize;
            this.y     = y;
            this.ySize = ySize;
            this.z     = z;
            this.zSize = zSize;

            this.width  = width;
            this.height = height;
            this.depth  = depth;

            this.grid = new UniformGrid3D(x, y, z, xSize / width, ySize / height, zSize / depth);
        }
Example #3
0
 protected void SetData(FuncData3D <T> data)
 {
     this.data = data;
 }