Headmaterial was repaired
This commit is contained in:
@@ -53,9 +53,8 @@ namespace StructureHelper.Infrastructure.UI.DataContexts
|
||||
string materialName = MaterialName;
|
||||
ICenter center = new Center { X = CenterX, Y = CenterY };
|
||||
IShape shape = new StructureHelperCommon.Models.Shapes.Point { Area = this.Area };
|
||||
IPrimitiveMaterial primitiveMaterial = GetPrimitiveMaterial();
|
||||
//IPrimitiveMaterial primitiveMaterial = new PrimitiveMaterial { MaterialType = GetMaterialTypes(), ClassName = materialName, Strength = Material.DesignCompressiveStrength };
|
||||
INdmPrimitive ndmPrimitive = new NdmPrimitive { Center = center, Shape = shape, PrimitiveMaterial = primitiveMaterial,
|
||||
INdmPrimitive ndmPrimitive = new NdmPrimitive(HeadMaterial)
|
||||
{ Center = center, Shape = shape,
|
||||
PrestrainKx = PrestrainKx,
|
||||
PrestrainKy = PrestrainKy,
|
||||
PrestrainEpsZ = PrestrainEpsZ
|
||||
|
||||
@@ -369,9 +369,5 @@ namespace StructureHelper.Infrastructure.UI.DataContexts
|
||||
else { throw new StructureHelperException(ErrorStrings.MaterialTypeIsUnknown); }
|
||||
return materialTypes;
|
||||
}
|
||||
public IPrimitiveMaterial GetPrimitiveMaterial()
|
||||
{
|
||||
return HeadMaterial.HelperMaterial.GetPrimitiveMaterial();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -49,10 +49,8 @@ namespace StructureHelper.Infrastructure.UI.DataContexts
|
||||
double centerY = CenterY;
|
||||
ICenter center = new Center { X = centerX, Y = centerY };
|
||||
IShape shape = new StructureHelperCommon.Models.Shapes.Rectangle { Height = height, Width = width, Angle = 0 };
|
||||
IPrimitiveMaterial primitiveMaterial = GetPrimitiveMaterial();
|
||||
//IPrimitiveMaterial primitiveMaterial = new PrimitiveMaterial { MaterialType = GetMaterialTypes(), ClassName = materialName, Strength = Material.DesignCompressiveStrength };
|
||||
INdmPrimitive ndmPrimitive = new NdmPrimitive
|
||||
{ Center = center, Shape = shape, PrimitiveMaterial = primitiveMaterial,
|
||||
INdmPrimitive ndmPrimitive = new NdmPrimitive(HeadMaterial)
|
||||
{ Center = center, Shape = shape,
|
||||
NdmMaxSize = MaxElementSize, NdmMinDivision = MinElementDivision,
|
||||
PrestrainKx = PrestrainKx,
|
||||
PrestrainKy = PrestrainKy,
|
||||
|
||||
Reference in New Issue
Block a user