Add import primitives to cross-section

This commit is contained in:
Evgeny Redikultsev
2025-11-02 14:07:06 +05:00
parent ba0d3e580b
commit 871be6cb46
14 changed files with 321 additions and 47 deletions

View File

@@ -15,9 +15,9 @@ namespace StructureHelperCommon.Models.Shapes
/// <inheritdoc />
public Guid Id { get; }
/// <inheritdoc />
public double X { get; set; }
public double X { get; set; } = 0;
/// <inheritdoc />
public double Y { get; set; }
public double Y { get; set; } = 0;
public Point2D(Guid id)
{
@@ -26,6 +26,12 @@ namespace StructureHelperCommon.Models.Shapes
public Point2D() : this(Guid.NewGuid()) { }
public Point2D(double x, double y) : this()
{
X = x;
Y = y;
}
public object Clone()
{
var newItem = new Point2D();