示例#1
0
        protected void Download(string[] cmdHandles, SourceQuery query, CmdToParam toParam)
        {
            foreach (string handle in cmdHandles)
            {
                if (config.CheckAutoMode(handle) == AutoMode.AUTO)
                {
                    Console.WriteLine($"Downloading data for {handle}...");

                    persistence.Persist(handle, query(toParam(handle)));
                }
            }
        }
示例#2
0
 protected TopologyMesh(SubDivisionMesh mesh, bool persist = true)
 {
     m_meshEntity = GeometryExtension.ToEntity(mesh) as ISubDMeshEntity;
     if (null != m_meshEntity)
     {
         ISurfaceEntity surface = m_meshEntity.ConvertToSurface(false);
         if (persist)
         {
             IPersistenceManager persistence_manager = persistence_manager_property.GetValue(null, null) as IPersistenceManager;
             if (null != surface && null != persistence_manager)
             {
                 m_brep = persistence_manager.Persist(surface) as IBRepEntity;
             }
         }
         else
         if (null != surface)
         {
             m_brep = surface as IBRepEntity;
         }
     }
 }