refactor(Hi.Sample): follow the Buckle to Mount rename -- the machine-tool and machining-project build demos and the coordinate-entry displayees use the ...Mount members

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-09-22 01:46:26 +08:00
co-authored by Claude Fable 5.1
parent 40214ca6f4
commit 2cf5d31bf6
6 changed files with 18 additions and 18 deletions
+3 -3
View File
@@ -184,18 +184,18 @@ public static class DemoBuildMachiningProject
#region ConfigureFixture
//The fixture topology is free; the default shape has one branch from the
//geometry anchor to each buckle, so the workpiece buckle is placed by the
//geometry anchor to each mount, so the workpiece mount is placed by the
//transformer of the branch to it: on top of the 10 mm thick fixture geom.
Fixture fixture = Fixture.CreateDefault();
fixture.Geom = new Box3d(new Vec3d(-40, -40, 0), new Vec3d(40, 40, 10));
Branch.Get(fixture.GeomAnchor, fixture.WorkpieceBuckle).Transformer
Branch.Get(fixture.GeomAnchor, fixture.WorkpieceMount).Transformer
= new StaticTranslation(new Vec3d(0, 0, 10));
localProjectService.Fixture = fixture;
#endregion
#region ConfigureWorkpiece
//The default shape already leads from the geometry anchor to the fixture
//buckle and to program zero by zero translations.
//mount and to program zero by zero translations.
Workpiece workpiece = Workpiece.CreateDefault();
workpiece.InitResolution = 0.25;
workpiece.InitGeom = new Box3d(0, 0, -50, 70, 50, 0);