Esempio n. 1
0
        private static SurfaceNormalGradientScheme NewSNGradScheme(string[] y)
        {
            SurfaceNormalGradientScheme x = null;

            if (y.Length > 1)
            {
                x = new SurfaceNormalGradientScheme();
                x.SetHeader(ref y[0]);
                x.type = y[1].ToEnum <SurfaceNormalGradientType>();
                if ((x.type == SurfaceNormalGradientType.limited) && (y.Length > 2))
                {
                    x.psi = Convert.ToDecimal(y[2]);
                }
            }
            return(x);
        }
Esempio n. 2
0
 private static SurfaceNormalGradientScheme NewSNGradScheme(string[] y)
 {
     SurfaceNormalGradientScheme x = null;
     if (y.Length > 1)
     {
         x = new SurfaceNormalGradientScheme();
         x.SetHeader( ref y[0]);
         x.type = y[1].ToEnum<SurfaceNormalGradientType>();
         if ((x.type == SurfaceNormalGradientType.limited) && (y.Length > 2))
         {
             x.psi = Convert.ToDecimal(y[2]);
         }
     }
     return x;
 }