//-------------------------------------------------------------------------------------------------- public static void Initialize() { if (_IsInitialized) { return; } Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); OcctSerializers.Init(); Serializer.RegisterNamespaceAlias("Core", "Macad.Core"); Serializer.RegisterNamespaceAlias("Topology", "Macad.Core.Topology"); Serializer.RegisterNamespaceAlias("Shapes", "Macad.Core.Shapes"); Serializer.RegisterNamespaceAlias("Auxiliary", "Macad.Core.Auxiliary"); Serializer.RegisterNamespaceAlias("Components", "Macad.Core.Components"); Serializer.RegisterNamespaceAlias("Toolkits", "Macad.Core.Toolkits"); Serializer.RegisterNamespaceAlias("Occt", "Macad.Occt"); _IsInitialized = true; }
//-------------------------------------------------------------------------------------------------- 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; }