From 734ed008b02f3523a97378ee761272f479509656 Mon Sep 17 00:00:00 2001 From: iambossTC Date: Fri, 25 Sep 2026 00:22:01 +0800 Subject: [PATCH] refactor(Hi.Sample): geometry slots take new Box3d(...) -- DemoBuildGeom's IGetStl list and the fixture and workpiece geometries of DemoBuildGeomOnlyMachiningProject and DemoBuildMachiningProject: box3d_t is the value only after HiGeom's box geometry split and no longer fits an IGetStl / IMakeXmlSource slot; the demos' value uses (bounds, ExpandToBox3d, drawings) stay box3d_t Co-Authored-By: Claude Fable 5.1 --- Geom/DemoBuildGeom.cs | 2 +- Machining/DemoBuildGeomOnlyMachiningProject.cs | 4 ++-- Machining/DemoBuildMachiningProject.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Geom/DemoBuildGeom.cs b/Geom/DemoBuildGeom.cs index 9a2f0ef..a77419f 100644 --- a/Geom/DemoBuildGeom.cs +++ b/Geom/DemoBuildGeom.cs @@ -22,7 +22,7 @@ public static class DemoBuildGeom /// A list of geometries implementing the IGetStl interface public static List GenGeoms() { - box3d_t box = new box3d_t(0, 0, -50, 70, 50, 0); + Box3d box = new Box3d(0, 0, -50, 70, 50, 0); Cylindroid cylindroid = new Cylindroid([ new PairZr(0,12),new PairZr(20,12), new PairZr(20,16),new PairZr(30,16)]); Stl stl = new Stl("geom.stl"); diff --git a/Machining/DemoBuildGeomOnlyMachiningProject.cs b/Machining/DemoBuildGeomOnlyMachiningProject.cs index 1eb53d0..ef584be 100644 --- a/Machining/DemoBuildGeomOnlyMachiningProject.cs +++ b/Machining/DemoBuildGeomOnlyMachiningProject.cs @@ -74,7 +74,7 @@ public static class DemoBuildGeomOnlyMachiningProject //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_t(new vec3d_t(-40, -40, 0), new vec3d_t(40, 40, 10)); + fixture.Geom = new Box3d(new vec3d_t(-40, -40, 0), new vec3d_t(40, 40, 10)); Branch.Get(fixture.GeomAnchor, fixture.WorkpieceMount).Transformer = new StaticTranslation(new vec3d_t(0, 0, 10)); localProjectService.Fixture = fixture; @@ -83,7 +83,7 @@ public static class DemoBuildGeomOnlyMachiningProject //mount and to program zero by zero translations. Workpiece workpiece = Workpiece.CreateDefault(); workpiece.InitResolution = 0.25; - workpiece.InitGeom = new box3d_t(0, 0, -50, 70, 50, 0); + workpiece.InitGeom = new Box3d(0, 0, -50, 70, 50, 0); workpiece.IdealGeom = null; localProjectService.Workpiece = workpiece; diff --git a/Machining/DemoBuildMachiningProject.cs b/Machining/DemoBuildMachiningProject.cs index a3175f9..7bf12bc 100644 --- a/Machining/DemoBuildMachiningProject.cs +++ b/Machining/DemoBuildMachiningProject.cs @@ -187,7 +187,7 @@ public static class DemoBuildMachiningProject //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_t(new vec3d_t(-40, -40, 0), new vec3d_t(40, 40, 10)); + fixture.Geom = new Box3d(new vec3d_t(-40, -40, 0), new vec3d_t(40, 40, 10)); Branch.Get(fixture.GeomAnchor, fixture.WorkpieceMount).Transformer = new StaticTranslation(new vec3d_t(0, 0, 10)); localProjectService.Fixture = fixture; @@ -198,7 +198,7 @@ public static class DemoBuildMachiningProject //mount and to program zero by zero translations. Workpiece workpiece = Workpiece.CreateDefault(); workpiece.InitResolution = 0.25; - workpiece.InitGeom = new box3d_t(0, 0, -50, 70, 50, 0); + workpiece.InitGeom = new Box3d(0, 0, -50, 70, 50, 0); workpiece.IdealGeom = null; workpiece.CuttingPara = XFactory.GenByFile( "Resource/CuttingParameter", "Al6061T6.default.mp", progress);