//--------------------------------------------------------------------------------------------------

        static void InitializeStatics()
        {
            if (_Initialized)
            {
                return;
            }

            StaticClassInitializer.InitializeStaticClasses(System.Reflection.Assembly.GetExecutingAssembly());

            _Initialized = true;
        }
Exemple #2
0
        //--------------------------------------------------------------------------------------------------

        static void InitializeStatics()
        {
            if (_Initialized)
            {
                return;
            }

            OcctSerializers.Init();
            Serializer.RegisterNamespaceAlias("Core", "Macad.Core");
            Serializer.RegisterNamespaceAlias("Topology", "Macad.Core.Topology");
            Serializer.RegisterNamespaceAlias("Shapes", "Macad.Core.Shapes");
            Serializer.RegisterNamespaceAlias("Components", "Macad.Core.Components");
            Serializer.RegisterNamespaceAlias("Toolkits", "Macad.Core.Toolkits");
            Serializer.RegisterNamespaceAlias("Exchange", "Macad.Core.Exchange");
            Serializer.RegisterNamespaceAlias("Occt", "Macad.Occt");

            StaticClassInitializer.InitializeStaticClasses(System.Reflection.Assembly.GetExecutingAssembly());

            _Initialized = true;
        }