using System; using StructureHelperCommon.Infrastructures.Exceptions; using StructureHelperCommon.Infrastructures.Strings; using StructureHelperCommon.Models.Shapes; using StructureHelperLogics.Models.Primitives; using StructureHelperLogics.NdmCalculations.Primitives; namespace StructureHelperLogics.NdmCalculations.Triangulations { /// public class RectangleTriangulationLogicOptions : IRectangleTriangulationLogicOptions { /// public IPoint2D Center { get; } /// public IRectangleShape Rectangle { get; } /// public double NdmMaxSize { get; } /// public int NdmMinDivision { get; } /// public double PrestrainKx { get;} /// public double PrestrainKy { get; } /// public double PrestrainEpsZ { get;} public RectangleTriangulationLogicOptions(IPoint2D center, IRectangleShape rectangle, double ndmMaxSize, int ndmMinDivision) { Center = center; Rectangle = rectangle; NdmMaxSize = ndmMaxSize; NdmMinDivision = ndmMinDivision; } public RectangleTriangulationLogicOptions(IRectanglePrimitive primitive) { Center = new Point2D() { X = primitive.CenterX, Y = primitive.CenterY }; Rectangle = primitive; NdmMaxSize = primitive.NdmMaxSize; NdmMinDivision = primitive.NdmMinDivision; PrestrainKx = primitive.PrestrainKx; PrestrainKy = primitive.PrestrainKy; PrestrainEpsZ = primitive.PrestrainEpsZ; } } }