style: apply CSharpier formatting to all C# sources

Repo-wide sweep with the pinned CSharpier 1.3.0 tool. Whitespace and
line-wrapping only; OpenNest.Engine.Tests (109) and OpenNest.IO.Tests
pass after reformat, full solution builds 0 errors.

Added .csharpierignore so csproj/config XML keeps its existing layout
(CSharpier's XML wrapping churns attributes with zero benefit).

Formatting is now enforceable: dotnet csharpier check . passes.
This commit is contained in:
aj
2026-09-20 16:41:50 -04:00
parent 8e6fa677fb
commit aec0523062
476 changed files with 16592 additions and 7800 deletions
+36 -7
View File
@@ -11,7 +11,12 @@ public class WeldGapTabSplit : ISplitFeature
{
public string Name => "Weld-Gap Tabs";
public SplitFeatureResult GenerateFeatures(SplitLine line, double extentStart, double extentEnd, SplitParameters parameters)
public SplitFeatureResult GenerateFeatures(
SplitLine line,
double extentStart,
double extentEnd,
SplitParameters parameters
)
{
var extent = extentEnd - extentStart;
var tabCount = parameters.TabCount;
@@ -51,18 +56,42 @@ public class WeldGapTabSplit : ISplitFeature
if (tabStart > cursor + OpenNest.Math.Tolerance.Epsilon)
negEntities.Add(new Line(new Vector(pos, cursor), new Vector(pos, tabStart)));
negEntities.Add(new Line(new Vector(pos, tabStart), new Vector(pos + tabDir * tabHeight, tabStart)));
negEntities.Add(new Line(new Vector(pos + tabDir * tabHeight, tabStart), new Vector(pos + tabDir * tabHeight, tabEnd)));
negEntities.Add(new Line(new Vector(pos + tabDir * tabHeight, tabEnd), new Vector(pos, tabEnd)));
negEntities.Add(
new Line(
new Vector(pos, tabStart),
new Vector(pos + tabDir * tabHeight, tabStart)
)
);
negEntities.Add(
new Line(
new Vector(pos + tabDir * tabHeight, tabStart),
new Vector(pos + tabDir * tabHeight, tabEnd)
)
);
negEntities.Add(
new Line(new Vector(pos + tabDir * tabHeight, tabEnd), new Vector(pos, tabEnd))
);
}
else
{
if (tabStart > cursor + OpenNest.Math.Tolerance.Epsilon)
negEntities.Add(new Line(new Vector(cursor, pos), new Vector(tabStart, pos)));
negEntities.Add(new Line(new Vector(tabStart, pos), new Vector(tabStart, pos + tabDir * tabHeight)));
negEntities.Add(new Line(new Vector(tabStart, pos + tabDir * tabHeight), new Vector(tabEnd, pos + tabDir * tabHeight)));
negEntities.Add(new Line(new Vector(tabEnd, pos + tabDir * tabHeight), new Vector(tabEnd, pos)));
negEntities.Add(
new Line(
new Vector(tabStart, pos),
new Vector(tabStart, pos + tabDir * tabHeight)
)
);
negEntities.Add(
new Line(
new Vector(tabStart, pos + tabDir * tabHeight),
new Vector(tabEnd, pos + tabDir * tabHeight)
)
);
negEntities.Add(
new Line(new Vector(tabEnd, pos + tabDir * tabHeight), new Vector(tabEnd, pos))
);
}
cursor = tabEnd;