double ScalarFieldFunc(double x, double y, double z)
        {
            double fun1 = Math.Pow(x, 2) + Math.Pow(y, 2) + Math.Pow(z, 2);

            double fun2 = Math.Pow(x - 5, 2) + Math.Pow(y, 2) + Math.Pow(z, 2);

            //fun2 = Math.Pow(x, 2) + Math.Pow(y, 2);

            //if (z < 0||z>5)
            //    fun2 = 100;
            // fun2 = Math.Min(fun2, 20);

            //double zero =  1e-6;

            booleanType type = booleanType.Difference;


            switch (type)
            {
            case booleanType.Union:
                return(Math.Min(fun1, fun2));

            case booleanType.Difference:
                return(Math.Max(fun1, -fun2));

            case booleanType.Intersection:
                return(Math.Max(fun1, fun2));

            default:
                break;
            }

            return(0);
        }
 public ExtraChargesDataType()
 {
     this.restaurantField = booleanType.N;
     this.giftShopField = booleanType.N;
     this.miniBarField = booleanType.N;
     this.telephoneField = booleanType.N;
     this.otherField = booleanType.N;
     this.laundryField = booleanType.N;
 }
 public CardDataType()
 {
     this.tokenRequestField = booleanType.N;
 }
 public AutoSubstantiationType()
 {
     this.merchantVerificationValueField = "0000000000";
     this.realTimeSubstantiationField = booleanType.N;
 }
 public LodgingDataType()
 {
     this.noShowField = booleanType.N;
     this.preferredCustomerField = booleanType.N;
 }