/// <summary> /// Генерирует наборы слоёв из переданных объектов /// сетки и геометрии /// </summary> /// <param name="grid">Объект Grid</param> /// <param name="geometry">Объект Geometry</param> private void GenerateLayersFromGridAndGeometry(Grid3D grid, Geometry3D geometry) { InsertGridLayersFromGrid(grid); InsertGridLayersFromGeometry(geometry); }
/// <summary> /// Генерирует списки слоёв из объекта Grid /// </summary> /// <param name="grid">Объект сетки Grid</param> private void InsertGridLayersFromGrid(Grid3D grid) { GridLayers3D.GridLayersX = StepTransition.GenerateGridLayerListFromStepTransitionList(grid.StepTransitionsX); GridLayers3D.GridLayersY = StepTransition.GenerateGridLayerListFromStepTransitionList(grid.StepTransitionsY); GridLayers3D.GridLayersZ = StepTransition.GenerateGridLayerListFromStepTransitionList(grid.StepTransitionsZ); }
public GridWithGeometryPreCalculated3D(Grid3D grid, Geometry3D geometry) { GenerateLayersFromGridAndGeometry(grid, geometry); CalculateGridLayers3DParamaters(); }