Add converting primitives and calculators
This commit is contained in:
@@ -12,13 +12,23 @@ namespace StructureHelperLogics.NdmCalculations.Cracking
|
||||
{
|
||||
public class CrackCalculatorInputData : ICrackCalculatorInputData
|
||||
{
|
||||
public Guid Id { get; } = new();
|
||||
public Guid Id { get; }
|
||||
/// <inheritdoc/>
|
||||
public List<INdmPrimitive> Primitives { get; private set; } = new();
|
||||
/// <inheritdoc/>
|
||||
public List<IForceAction> ForceActions { get; private set; } = new();
|
||||
public IUserCrackInputData UserCrackInputData { get; set; } = GetNewUserData();
|
||||
|
||||
public CrackCalculatorInputData(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
|
||||
public CrackCalculatorInputData() : this (Guid.NewGuid())
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private static UserCrackInputData GetNewUserData()
|
||||
{
|
||||
return new UserCrackInputData()
|
||||
|
||||
Reference in New Issue
Block a user