Добавил методы для формирования исходных примитивов для триангуляции
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
using System;
|
||||
using System.Windows.Media;
|
||||
using StructureHelper.Infrastructure.Enums;
|
||||
using StructureHelper.Models.Materials;
|
||||
using StructureHelper.Windows.MainWindow;
|
||||
using StructureHelperLogics.Data.Shapes;
|
||||
using StructureHelperLogics.NdmCalculations.Entities;
|
||||
using StructureHelperLogics.NdmCalculations.Materials;
|
||||
|
||||
namespace StructureHelper.Infrastructure.UI.DataContexts
|
||||
{
|
||||
@@ -26,5 +30,19 @@ namespace StructureHelper.Infrastructure.UI.DataContexts
|
||||
ShowedX = 0;
|
||||
ShowedY = 0;
|
||||
}
|
||||
|
||||
public override INdmPrimitive GetNdmPrimitive()
|
||||
{
|
||||
double strength = 0;
|
||||
double centerX = 0;
|
||||
double centerY = 0;
|
||||
double area = 0;
|
||||
string materialName = "s400";
|
||||
ICenter center = new Center() { X = centerX, Y = centerY };
|
||||
IShape shape = new Point() { Area = area };
|
||||
IPrimitiveMaterial primitiveMaterial = new PrimitiveMaterial() { MaterialType = GetMaterialTypes(), ClassName = materialName, Strength = strength }; ;
|
||||
INdmPrimitive ndmPrimitive = new NdmPrimitive() { Center = center, Shape = shape, PrimitiveMaterial = primitiveMaterial };
|
||||
return ndmPrimitive;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user