Add triangulation of polygon
This commit is contained in:
@@ -16,21 +16,20 @@ namespace StructureHelperLogics.NdmCalculations.Triangulations
|
||||
public double RotationAngle { get; set; } = 0d;
|
||||
/// <inheritdoc />
|
||||
public IRectangleShape Rectangle { get; }
|
||||
/// <inheritdoc />
|
||||
public double NdmMaxSize { get; }
|
||||
/// <inheritdoc />
|
||||
public int NdmMinDivision { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public StrainTuple Prestrain { get; set; }
|
||||
public ITriangulationOptions triangulationOptions { get; set; }
|
||||
public ITriangulationOptions TriangulationOptions { get; set; }
|
||||
public IHeadMaterial HeadMaterial { get; set; }
|
||||
|
||||
public IDivisionSize DivisionSize { get; } = new DivisionSize(Guid.Empty);
|
||||
|
||||
public RectangleTriangulationLogicOptions(IPoint2D center, IRectangleShape rectangle, double ndmMaxSize, int ndmMinDivision)
|
||||
{
|
||||
Center = center;
|
||||
Rectangle = rectangle;
|
||||
NdmMaxSize = ndmMaxSize;
|
||||
NdmMinDivision = ndmMinDivision;
|
||||
DivisionSize.NdmMaxSize = ndmMaxSize;
|
||||
DivisionSize.NdmMinDivision = ndmMinDivision;
|
||||
Prestrain = new StrainTuple();
|
||||
}
|
||||
|
||||
@@ -39,8 +38,8 @@ namespace StructureHelperLogics.NdmCalculations.Triangulations
|
||||
Center = new Point2D() {X = primitive.Center.X, Y = primitive.Center.Y };
|
||||
RotationAngle = primitive.RotationAngle;
|
||||
Rectangle = primitive;
|
||||
NdmMaxSize = primitive.DivisionSize.NdmMaxSize;
|
||||
NdmMinDivision = primitive.DivisionSize.NdmMinDivision;
|
||||
DivisionSize.NdmMaxSize = primitive.DivisionSize.NdmMaxSize;
|
||||
DivisionSize.NdmMinDivision = primitive.DivisionSize.NdmMinDivision;
|
||||
HeadMaterial = primitive.NdmElement.HeadMaterial;
|
||||
Prestrain = ForceTupleService.SumTuples(primitive.NdmElement.UsersPrestrain, primitive.NdmElement.AutoPrestrain) as StrainTuple;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user