refactor(Hi.Sample)!: Box3d, Tri3d, DVec3d and Box2d are named box3d_t, tri3d_t, dvec3d_t and box2d_t -- the C++ typedef names, following HiGeom; the Hi.Native vec3d/tri3d/box3d mirrors are the Hi.Geom values now and vec3f is Hi.Geom.vec3f_t (a word-boundary identifier rename; compound names, string literals and the wire kind names are untouched)
BREAKING CHANGE: source that names these types must use the _t names; the Hi.Native mirrors are gone. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -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(new vec3d_t(-40, -40, 0), new vec3d_t(40, 40, 10));
|
||||
fixture.Geom = new box3d_t(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(0, 0, -50, 70, 50, 0);
|
||||
workpiece.InitGeom = new box3d_t(0, 0, -50, 70, 50, 0);
|
||||
workpiece.IdealGeom = null;
|
||||
workpiece.CuttingPara = XFactory.GenByFile<ICuttingPara>(
|
||||
"Resource/CuttingParameter", "Al6061T6.default.mp", progress);
|
||||
|
||||
Reference in New Issue
Block a user