Add import of polygon from dxf

This commit is contained in:
Evgeny Redikultsev
2025-11-01 21:56:47 +05:00
parent 3dfbb43b73
commit ba0d3e580b
34 changed files with 498 additions and 179 deletions

View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StructureHelperCommon.Models.Shapes
{
public enum ArcFlatteningMode
{
ByAngleStep,
BySegmentCount,
ByMaxSegmentLength,
Combined
}
public class ArcFlatteningOption : IArcFlatteningOption
{
public ArcFlatteningMode Mode { get; set; } = ArcFlatteningMode.Combined;
public double AngleStepRadians { get; set; } = Math.PI / 8; // 22.5°
public int SegmentCount { get; set; } = 2;
public double MaxSegmentLength { get; set; } = 0.05; // (m)
}
}