feat: add pierce point visualization and rename shape dimensions to Length/Width

Add toggleable pierce point drawing to PlateView that shows small red
filled circles at each rapid move endpoint (where cutting begins). Wire
through View menu, EditNestForm toggle, and MainForm handler.

Also rename RectangleShape/RoundedRectangleShape Width/Height to
Length/Width for consistency with CNC conventions, update MCP tools and
tests accordingly. Fix SplitDrawingForm designer layout ordering and
EntityView bend line selection styling.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
aj
2026-03-25 21:26:49 -04:00
co-authored by Claude Opus 4.6
parent 19001ea5be
commit f29f086080
14 changed files with 167 additions and 95 deletions
+11 -3
View File
@@ -194,9 +194,9 @@ namespace OpenNest.Controls
{
DashPattern = new float[] { 8, 6 }
};
using var selectedPen = new Pen(Color.Cyan, 2.5f)
using var glowPen = new Pen(Color.OrangeRed, 2.0f)
{
DashPattern = new float[] { 8, 6 }
DashPattern = new float[] { 6, 4 }
};
for (var i = 0; i < Bends.Count; i++)
@@ -204,7 +204,15 @@ namespace OpenNest.Controls
var bend = Bends[i];
var pt1 = PointWorldToGraph(bend.StartPoint);
var pt2 = PointWorldToGraph(bend.EndPoint);
g.DrawLine(i == SelectedBendIndex ? selectedPen : bendPen, pt1, pt2);
if (i == SelectedBendIndex)
{
g.DrawLine(glowPen, pt1, pt2);
}
else
{
g.DrawLine(bendPen, pt1, pt2);
}
}
}