Tuple crack calculator was changed
This commit is contained in:
@@ -14,18 +14,42 @@ using StructureHelperCommon.Models.Parameters;
|
||||
|
||||
namespace StructureHelperLogics.NdmCalculations.Primitives
|
||||
{
|
||||
/// <summary>
|
||||
/// Geometrical primitive which generates ndm elemtntary part
|
||||
/// </summary>
|
||||
public interface INdmPrimitive : ISaveable, ICloneable
|
||||
{
|
||||
/// <summary>
|
||||
/// Name of primitive
|
||||
/// </summary>
|
||||
string? Name { get; set; }
|
||||
/// <summary>
|
||||
/// Base point of primitive
|
||||
/// </summary>
|
||||
IPoint2D Center { get; }
|
||||
/// <summary>
|
||||
/// Host cross-section for primitive
|
||||
/// </summary>
|
||||
ICrossSection? CrossSection { get; set; }
|
||||
/// <summary>
|
||||
/// Material of primitive
|
||||
/// </summary>
|
||||
IHeadMaterial? HeadMaterial { get; set; }
|
||||
/// <summary>
|
||||
/// Flag of triangulation
|
||||
/// </summary>
|
||||
bool Triangulate { get; set; }
|
||||
/// <summary>
|
||||
/// Prestrain assigned from user
|
||||
/// </summary>
|
||||
StrainTuple UsersPrestrain { get; }
|
||||
/// <summary>
|
||||
/// Prestrain assigned from calculations
|
||||
/// </summary>
|
||||
StrainTuple AutoPrestrain { get; }
|
||||
/// <summary>
|
||||
/// Visual settings
|
||||
/// </summary>
|
||||
IVisualProperty VisualProperty {get; }
|
||||
|
||||
IEnumerable<INdm> GetNdms(ITriangulationOptions triangulationOptions);
|
||||
|
||||
@@ -9,10 +9,22 @@ namespace StructureHelperLogics.NdmCalculations.Primitives
|
||||
{
|
||||
public interface IVisualProperty
|
||||
{
|
||||
/// <summary>
|
||||
/// Flag of visibility
|
||||
/// </summary>
|
||||
bool IsVisible { get; set; }
|
||||
Color Color { get; set; }
|
||||
/// <summary>
|
||||
/// Flag of assigning of color from material or from primitive's settings
|
||||
/// </summary>
|
||||
bool SetMaterialColor { get; set; }
|
||||
/// <summary>
|
||||
/// Index by z-coordinate
|
||||
/// </summary>
|
||||
int ZIndex { get; set; }
|
||||
/// <summary>
|
||||
/// Opacity of filling
|
||||
/// </summary>
|
||||
double Opacity { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,13 +68,35 @@ namespace StructureHelperLogics.NdmCalculations.Primitives
|
||||
}
|
||||
|
||||
public IEnumerable<INdm> GetNdms(ITriangulationOptions triangulationOptions)
|
||||
{
|
||||
List<INdm> ndms = new()
|
||||
{
|
||||
GetConcreteNdm(triangulationOptions),
|
||||
GetRebarNdm(triangulationOptions)
|
||||
};
|
||||
return ndms;
|
||||
}
|
||||
|
||||
public RebarNdm GetRebarNdm(ITriangulationOptions triangulationOptions)
|
||||
{
|
||||
var options = new RebarTriangulationLogicOptions(this)
|
||||
{
|
||||
triangulationOptions = triangulationOptions
|
||||
};
|
||||
var logic = new RebarTriangulationLogic(options);
|
||||
return logic.GetNdmCollection();
|
||||
var rebar = logic.GetRebarNdm();
|
||||
return rebar;
|
||||
}
|
||||
|
||||
public Ndm GetConcreteNdm(ITriangulationOptions triangulationOptions)
|
||||
{
|
||||
var options = new RebarTriangulationLogicOptions(this)
|
||||
{
|
||||
triangulationOptions = triangulationOptions
|
||||
};
|
||||
var logic = new RebarTriangulationLogic(options);
|
||||
var concrete = logic.GetConcreteNdm();
|
||||
return concrete;
|
||||
}
|
||||
|
||||
public List<INamedAreaPoint> GetValuePoints()
|
||||
|
||||
Reference in New Issue
Block a user