code: public void setDimension(double minx, double maxx, double miny, double maxy, double minz, double maxz) {
          this.minx = minx;
          this.maxx = maxx;
          this.miny = miny;
          this.maxy = maxy;
          this.minz = minz;
          this.maxz = maxz;
      }
docs: Method sets the maximal 3d dimensions to given min and max values.