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:
@@ -60,9 +60,9 @@ namespace Sample.Disp
|
||||
return;
|
||||
|
||||
////Console.WriteLine($"B: {CoordinateIndex}; {coordinateMove}");
|
||||
Vec3d mcXyz_AttacherAtTableBuckleZero = MillingEquipmentFunc?.Invoke()
|
||||
?.GetMachinePositionAtTableBuckleZero();
|
||||
if (mcXyz_AttacherAtTableBuckleZero == null)
|
||||
Vec3d mcXyz_AttacherAtTableMountZero = MillingEquipmentFunc?.Invoke()
|
||||
?.GetMachinePositionAtTableMountZero();
|
||||
if (mcXyz_AttacherAtTableMountZero == null)
|
||||
return;
|
||||
|
||||
Vec3d coordinateMove;
|
||||
@@ -85,7 +85,7 @@ namespace Sample.Disp
|
||||
//Console.WriteLine($"text: [{text}]");
|
||||
|
||||
bind.ModelMatStack.Push();
|
||||
bind.ModelMatStack.Trans(coordinateMove - mcXyz_AttacherAtTableBuckleZero);
|
||||
bind.ModelMatStack.Trans(coordinateMove - mcXyz_AttacherAtTableMountZero);
|
||||
CoordinateDrawing.Display(bind, text);
|
||||
bind.ModelMatStack.Pop();
|
||||
}
|
||||
@@ -96,9 +96,9 @@ namespace Sample.Disp
|
||||
if (ncEnv == null || NcEnv.CncBrand != CncBrand.Heidenhain)
|
||||
return;
|
||||
|
||||
Vec3d mcXyz_AttacherAtTableBuckleZero = MillingEquipmentFunc?.Invoke()
|
||||
?.GetMachinePositionAtTableBuckleZero();
|
||||
if (mcXyz_AttacherAtTableBuckleZero == null)
|
||||
Vec3d mcXyz_AttacherAtTableMountZero = MillingEquipmentFunc?.Invoke()
|
||||
?.GetMachinePositionAtTableMountZero();
|
||||
if (mcXyz_AttacherAtTableMountZero == null)
|
||||
return;
|
||||
Vec3d coordinateMove;
|
||||
if (HeidenhainCycleDef247Q339 == 0 && HeidenhainCycleDef7Arg == null)
|
||||
@@ -107,13 +107,13 @@ namespace Sample.Disp
|
||||
HeidenhainCycleDef247Q339, HeidenhainCycleDef7Arg, ncEnv);
|
||||
|
||||
|
||||
dst.Expand(-mcXyz_AttacherAtTableBuckleZero + coordinateMove);
|
||||
dst.Expand(-mcXyz_AttacherAtTableMountZero + coordinateMove);
|
||||
}
|
||||
/// <inheritdoc/>
|
||||
public Anchor GetAnchor()
|
||||
{
|
||||
return MillingEquipmentFunc?.Invoke()?.GetMachiningChain()
|
||||
?.GetTableBuckle()?.GetAnchor();
|
||||
?.GetTableMount()?.GetAnchor();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ public class IsoCoordinateEntryDisplayee : IAnchoredDisplayee
|
||||
dst.Expand(attacherPos);
|
||||
}
|
||||
/// <inheritdoc/>
|
||||
/// <returns>Table Buckle if existed; otherwise, return null.</returns>
|
||||
/// <returns>Table Mount if existed; otherwise, return null.</returns>
|
||||
public Anchor GetAnchor()
|
||||
{
|
||||
return MillingEquipmentFunc?.Invoke()?.GetMachiningChain()?.GetAnchor();
|
||||
|
||||
Reference in New Issue
Block a user