예제 #1
0
        /// <summary>
        /// Добавляет слои из переданного объекта в текущий
        /// </summary>
        /// <param name="gridLayers3D">Объект GridLayers3D</param>
        public void Merge(GridLayers3D gridLayers3D)
        {
            if (gridLayers3D == null)
            {
                return;
            }

            GridLayersX = MergeGridLayerLists(GridLayersX, gridLayers3D.GridLayersX);
            GridLayersY = MergeGridLayerLists(GridLayersY, gridLayers3D.GridLayersY);
            GridLayersZ = MergeGridLayerLists(GridLayersZ, gridLayers3D.GridLayersZ);
        }
        /// <summary>
        /// Добавляет слои из объекта геометрии
        /// </summary>
        /// <param name="geometry">Объект Geometry</param>
        private void InsertGridLayersFromGeometry(Geometry3D geometry)
        {
            if (geometry == null)
            {
                return;
            }

            GridLayers3D gridLayers3D = geometry.GetGridLayers3D;

            GridLayers3D.Merge(gridLayers3D);
        }