code: public void setFromCornersProperties(Point3d p1, Point3d p2) {
  		if (p1.getX()<p2.getX()) {
  			this.minxProperty = p1.xProperty;
  			this.maxxProperty = p2.xProperty;
  		}
  		else {
  			this.minxProperty = p2.xProperty;
  			this.maxxProperty = p1.xProperty;
  		}
  		if (p1.getY()<p2.getY()) {
  			this.minyProperty = p1.yProperty;
  			this.maxyProperty = p2.yProperty;
  		}
  		else {
  			this.minyProperty = p2.yProperty;
  			this.maxyProperty = p1.yProperty;
  		}
  		if (p1.getZ()<p2.getZ()) {
  			this.minzProperty = p1.zProperty;
  			this.maxzProperty = p2.zProperty;
  		}
  		else {
  			this.minzProperty = p2.zProperty;
  			this.maxzProperty = p1.zProperty;
  		}
  	}
docs: Change the frame of the box.
  
  @param p1 is the coordinate of the first corner.
  @param p2 is the coordinate of the second corner.