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:
@@ -21,8 +21,8 @@ namespace Sample.Disp
|
||||
double angle_moon;
|
||||
DemoSatellite()
|
||||
{
|
||||
sun = Box3d.CenterUnitBox.ScaleFromCenter(4).ToDraw_Face();
|
||||
earth = Box3d.CenterUnitBox.ScaleFromCenter(2).ToDraw_Face();
|
||||
sun = Box3d.CenterUnitBox.ScaledFromCenter(4).ToDraw_Face();
|
||||
earth = Box3d.CenterUnitBox.ScaledFromCenter(2).ToDraw_Face();
|
||||
moon = Box3d.CenterUnitBox.ToDraw_Face();
|
||||
}
|
||||
/// <inheritdoc/>
|
||||
@@ -41,10 +41,10 @@ namespace Sample.Disp
|
||||
bind.ModelMatStack.Pop();
|
||||
}
|
||||
/// <inheritdoc/>
|
||||
public void ExpandToBox3d(Box3d dst)
|
||||
public void ExpandToBox3d(ref Box3d dst)
|
||||
{
|
||||
dst.Expand(new vec3d_t(-14, -14, -2));
|
||||
dst.Expand(new vec3d_t(14, 14, 2));
|
||||
dst = dst.Expanded(new vec3d_t(-14, -14, -2));
|
||||
dst = dst.Expanded(new vec3d_t(14, 14, 2));
|
||||
}
|
||||
|
||||
static void Main()
|
||||
|
||||
Reference in New Issue
Block a user