Extract IsBendLine helper to clean up BendLineExtractor

This commit is contained in:
AJ
2025-05-08 08:24:31 -04:00
parent 774012021c
commit e5daf748c6

View File

@@ -49,7 +49,7 @@ namespace EtchBendLines
foreach (var line in DxfDocument.Lines)
{
if (line.Linetype.Name != "CENTERX2" && line.Layer.Name != "BEND")
if (!IsBendLine(line))
continue;
var bend = new Bend
@@ -66,6 +66,11 @@ namespace EtchBendLines
return bends.Where(b => b.Radius <= MaxBendRadius).ToList();
}
private bool IsBendLine(Line line)
{
return line.Linetype.Name == "CENTERX2" && line.Layer.Name == "BEND";
}
private List<MText> GetBendNotes()
{
return DxfDocument.MTexts