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:
@@ -20,16 +20,16 @@ namespace Sample.Disp
|
||||
public void Display(Bind bind)
|
||||
{
|
||||
bind.Rgb = ColorUtil.GetDiscreteRGB_Env();
|
||||
new Box3d(0, 0, 0, 1, 1, 1).ToDraw_Face().Display(bind);
|
||||
new box3d_t(0, 0, 0, 1, 1, 1).ToDraw_Face().Display(bind);
|
||||
|
||||
bind.Rgb = ColorUtil.GetDiscreteRGB_Env();
|
||||
new Box3d(1, 0, 0, 2, 1, 1).ToDraw_Face().Display(bind);
|
||||
new box3d_t(1, 0, 0, 2, 1, 1).ToDraw_Face().Display(bind);
|
||||
|
||||
bind.Rgb = ColorUtil.GetDiscreteRGB_Env();
|
||||
new Box3d(2, 0, 0, 3, 1, 1).ToDraw_Face().Display(bind);
|
||||
new box3d_t(2, 0, 0, 3, 1, 1).ToDraw_Face().Display(bind);
|
||||
}
|
||||
/// <inheritdoc/>
|
||||
public void ExpandToBox3d(ref Box3d dst)
|
||||
public void ExpandToBox3d(ref box3d_t dst)
|
||||
{
|
||||
dst = dst.Expanded(new vec3d_t(0, 0, 0));
|
||||
dst = dst.Expanded(new vec3d_t(3, 1, 1));
|
||||
|
||||
Reference in New Issue
Block a user