Beispiel #1
0
        public static Class197 smethod_0(Interface8 reader)
        {
            reader.imethod_10();
            string   key = reader.imethod_14();
            Class197 class197;

            if (key == "ref")
            {
                int index = reader.imethod_5();
                class197 = (Class197)reader.imethod_1(index);
                if (class197 == null)
                {
                    throw new Exception0("Missing subentity : " + (object)index);
                }
            }
            else
            {
                Class197.Delegate4 delegate4;
                if (!Class197.dictionary_0.TryGetValue(key, out delegate4))
                {
                    throw new Exception0("Not supported sub spline surface primitive type : " + key);
                }
                class197 = delegate4();
                reader.imethod_2((Class196)class197);
                class197.method_2(reader);
                class197.imethod_0(reader);
                class197.vmethod_1(reader);
            }
            reader.imethod_9();
            return(class197);
        }
Beispiel #2
0
        public static Class1028.Enum49 smethod_0(Interface8 reader)
        {
            if (reader.FileFormatVersion > Class250.int_27)
            {
                return((Class1028.Enum49)reader.imethod_11(Class1028.string_0));
            }
            string str = reader.imethod_14();

            if (str == Class1028.string_0[0])
            {
                return(Class1028.Enum49.const_0);
            }
            if (str == Class1028.string_0[1])
            {
                return(Class1028.Enum49.const_1);
            }
            if (str == Class1028.string_0[2])
            {
                return(Class1028.Enum49.const_2);
            }
            if (!(str == Class1028.string_0[3]))
            {
                throw new Exception0("Unknown b-spline type : " + str);
            }
            return(Class1028.Enum49.const_3);
        }
Beispiel #3
0
        public static Class224 smethod_0(Interface8 reader)
        {
            reader.imethod_10();
            string   key = reader.imethod_14();
            Class224 class224;

            if (key == "ref")
            {
                int index = reader.imethod_5();
                class224 = (Class224)reader.imethod_1(index);
                if (class224 == null)
                {
                    throw new Exception0("Missing subentity : " + (object)index);
                }
            }
            else
            {
                Class224.Delegate5 delegate5;
                if (!Class224.dictionary_0.TryGetValue(key, out delegate5))
                {
                    throw new Exception0("Not supported sub curve type : " + key);
                }
                class224 = delegate5();
                reader.imethod_2((Class196)class224);
                class224.imethod_0(reader);
            }
            reader.imethod_9();
            return(class224);
        }
Beispiel #4
0
        public static Class369 smethod_0(Interface8 reader)
        {
            string key = reader.imethod_14();

            Class369.Delegate8 delegate8;
            if (!Class369.dictionary_0.TryGetValue(key, out delegate8))
            {
                throw new Exception0("Not supported body geometry primitive type : " + key);
            }
            Class369 class369 = delegate8();

            class369.imethod_0(reader);
            return(class369);
        }
Beispiel #5
0
        public static Interface3 smethod_0(Interface8 reader)
        {
            string key = reader.imethod_14();

            Class607.Delegate16 delegate16;
            if (!Class607.dictionary_0.TryGetValue(key, out delegate16))
            {
                throw new Exception0("Not supported blend support curve type : " + key);
            }
            Interface3 nterface3 = delegate16();

            nterface3.imethod_0(reader);
            return(nterface3);
        }
Beispiel #6
0
        public static Class364 smethod_0(Interface8 reader)
        {
            string key = reader.imethod_14();

            Class364.Delegate7 delegate7;
            if (!Class364.dictionary_0.TryGetValue(key, out delegate7))
            {
                throw new Exception0("Not supported var radius type : " + key);
            }
            Class364 class364 = delegate7();

            class364.imethod_0(reader);
            return(class364);
        }
Beispiel #7
0
        public static Class242 smethod_0(Interface8 reader)
        {
            string key = reader.imethod_14();

            Class242.Delegate6 delegate6;
            if (!Class242.dictionary_0.TryGetValue(key, out delegate6))
            {
                throw new Exception0("Not supported sub curve primitive type : " + key);
            }
            Class242 class242 = delegate6();

            class242.imethod_0(reader);
            return(class242);
        }
Beispiel #8
0
        public static Class188 smethod_0(Interface8 reader)
        {
            string key = reader.imethod_14();

            Class188.Delegate3 delegate3;
            if (!Class188.dictionary_0.TryGetValue(key, out delegate3))
            {
                throw new Exception0("Not supported sub surface primitive type : " + key);
            }
            Class188 class188 = delegate3();

            class188.imethod_0(reader);
            return(class188);
        }
Beispiel #9
0
        public static Class647.Enum23 smethod_0(Interface8 reader)
        {
            string str = reader.imethod_14();

            if (str == Class647.string_0[0])
            {
                return(Class647.Enum23.const_0);
            }
            if (str == Class647.string_0[1])
            {
                return(Class647.Enum23.const_1);
            }
            if (!(str == Class647.string_0[2]))
            {
                throw new Exception0("Unknown b-spline type : " + str);
            }
            return(Class647.Enum23.const_2);
        }
Beispiel #10
0
        private Class80 method_5(Interface8 reader)
        {
            if (reader.imethod_4(this.ilist_0.Count) != this.ilist_0.Count)
            {
                throw new Exception0("Unexpected entity index");
            }
            string str = reader.imethod_14();

            if (str == null || "End-of-ACIS-data".Equals(str) || "End-of-ASM-data".Equals(str))
            {
                return((Class80)null);
            }
            Class795.Delegate18 delegate18;
            Class80             class80;

            if (!Class795.dictionary_0.TryGetValue(str, out delegate18))
            {
                string key = str;
                for (int index = key.IndexOf(Class795.char_0); index >= 0 && index + 1 < key.Length; index = key.IndexOf(Class795.char_0))
                {
                    key = key.Substring(index + 1);
                    if (Class795.dictionary_0.TryGetValue(key, out delegate18))
                    {
                        break;
                    }
                }
                Class80 basicEntity = delegate18 != null?delegate18() : new Class80();

                class80 = (Class80) new Class94(str, basicEntity);
            }
            else
            {
                class80 = delegate18();
            }
            class80.imethod_0(reader);
            class80.Index = this.ilist_0.Count;
            return(class80);
        }