test(desktop): pin sub-program frame origin and height-limited fit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ajandClaude Opus 5.5 committed 2026-11-11 22:18:14 -05:00
1 parent 049b45b394
commit 5edebc6144
3 files changed
+6 -175

No files matched your search

@@ -266,6 +266,8 @@ public class ProgramGeometryTests
hole.Codes.Add(new RapidMove(new Vector(1, 0)));
hole.Codes.Add(new ArcMove(Vector.Zero, new Vector(-1, 0), RotationType.CW));
var program = Square();
// The tool is elsewhere when the call runs; the offset is from the frame origin.
program.Codes.Add(new RapidMove(new Vector(20, 20)));
program.Codes.Add(new SubProgramCall(hole, 0) { Offset = new Vector(5, 5) });
var cut = ProgramGeometry.Layers(program).Cut;