Force combination was added
This commit is contained in:
@@ -4,7 +4,7 @@ namespace StructureHelperLogics.NdmCalculations.Triangulations
|
||||
{
|
||||
public interface IPointTriangulationLogicOptions : ITriangulationLogicOptions
|
||||
{
|
||||
ICenter Center { get; }
|
||||
IPoint2D Center { get; }
|
||||
double Area { get; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace StructureHelperLogics.NdmCalculations.Triangulations
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
ICenter Center { get; }
|
||||
IPoint2D Center { get; }
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace StructureHelperLogics.NdmCalculations.Triangulations
|
||||
public IEnumerable<INdm> GetNdmCollection(IMaterial material)
|
||||
{
|
||||
IPointTriangulationLogicOptions options = Options as IPointTriangulationLogicOptions;
|
||||
ICenter center = options.Center;
|
||||
IPoint2D center = options.Center;
|
||||
double area = options.Area;
|
||||
List<INdm> ndmCollection = new List<INdm>();
|
||||
INdm ndm = new Ndm { CenterX = center.X, CenterY = center.Y, Area = area, Material = material };
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace StructureHelperLogics.NdmCalculations.Triangulations
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public ICenter Center { get; }
|
||||
public IPoint2D Center { get; }
|
||||
/// <inheritdoc />
|
||||
public double Area { get; }
|
||||
/// <inheritdoc />
|
||||
@@ -24,7 +24,7 @@ namespace StructureHelperLogics.NdmCalculations.Triangulations
|
||||
/// <inheritdoc />
|
||||
public double PrestrainEpsZ { get; }
|
||||
|
||||
public PointTriangulationLogicOptions(ICenter center, double area)
|
||||
public PointTriangulationLogicOptions(IPoint2D center, double area)
|
||||
{
|
||||
Center = center;
|
||||
Area = area;
|
||||
@@ -32,7 +32,7 @@ namespace StructureHelperLogics.NdmCalculations.Triangulations
|
||||
|
||||
public PointTriangulationLogicOptions(IPointPrimitive primitive)
|
||||
{
|
||||
Center = new Center() { X = primitive.CenterX, Y = primitive.CenterY };
|
||||
Center = new Point2D() { X = primitive.CenterX, Y = primitive.CenterY };
|
||||
Area = primitive.Area;
|
||||
PrestrainKx = primitive.PrestrainKx;
|
||||
PrestrainKy = primitive.PrestrainKy;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace StructureHelperLogics.NdmCalculations.Triangulations
|
||||
public class RectangleTriangulationLogicOptions : IRectangleTriangulationLogicOptions
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public ICenter Center { get; }
|
||||
public IPoint2D Center { get; }
|
||||
/// <inheritdoc />
|
||||
public IRectangleShape Rectangle { get; }
|
||||
/// <inheritdoc />
|
||||
@@ -25,7 +25,7 @@ namespace StructureHelperLogics.NdmCalculations.Triangulations
|
||||
/// <inheritdoc />
|
||||
public double PrestrainEpsZ { get;}
|
||||
|
||||
public RectangleTriangulationLogicOptions(ICenter center, IRectangleShape rectangle, double ndmMaxSize, int ndmMinDivision)
|
||||
public RectangleTriangulationLogicOptions(IPoint2D center, IRectangleShape rectangle, double ndmMaxSize, int ndmMinDivision)
|
||||
{
|
||||
Center = center;
|
||||
Rectangle = rectangle;
|
||||
@@ -35,7 +35,7 @@ namespace StructureHelperLogics.NdmCalculations.Triangulations
|
||||
|
||||
public RectangleTriangulationLogicOptions(IRectanglePrimitive primitive)
|
||||
{
|
||||
Center = new Center() { X = primitive.CenterX, Y = primitive.CenterY };
|
||||
Center = new Point2D() { X = primitive.CenterX, Y = primitive.CenterY };
|
||||
Rectangle = primitive;
|
||||
NdmMaxSize = primitive.NdmMaxSize;
|
||||
NdmMinDivision = primitive.NdmMinDivision;
|
||||
|
||||
Reference in New Issue
Block a user