refactor(Hi.Sample): follow HiGeom's Box3d struct -- the demo displayees take ref Box3d and expand through Expanded, DemoSatellite scales its boxes with ScaledFromCenter, and MachiningProjectDisplayee forwards ref dst to the assembly
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -59,7 +59,7 @@ public class IsoCoordinateEntryDisplayee : IAnchoredDisplayee
|
||||
bind.ModelMatStack.Pop();
|
||||
}
|
||||
/// <inheritdoc/>
|
||||
public void ExpandToBox3d(Box3d dst)
|
||||
public void ExpandToBox3d(ref Box3d dst)
|
||||
{
|
||||
HardNcEnv ncEnv = NcEnv;
|
||||
if (ncEnv == null)
|
||||
@@ -70,7 +70,7 @@ public class IsoCoordinateEntryDisplayee : IAnchoredDisplayee
|
||||
IMachiningEquipment equipment = MillingEquipmentFunc?.Invoke();
|
||||
if (equipment == null || !equipment.TryGetIsoCoordinatePosition(coordinateMove, out vec3d_t attacherPos))
|
||||
return;
|
||||
dst.Expand(attacherPos);
|
||||
dst = dst.Expanded(attacherPos);
|
||||
}
|
||||
/// <inheritdoc/>
|
||||
/// <returns>Table Mount if existed; otherwise, return null.</returns>
|
||||
|
||||
Reference in New Issue
Block a user