add cubetree defect display.

This commit is contained in:
iamboss 2026-02-11 04:11:09 +08:00
parent d18d936868
commit 6931bbdc97
2 changed files with 4 additions and 4 deletions

View File

@ -183,7 +183,7 @@ namespace Sample.Disp
tris.Add(new Tri3d(new Vec3d(i, 0, 0), new Vec3d(i + 1, 0, 0), new Vec3d(i + 0.5, 0, 1))); tris.Add(new Tri3d(new Vec3d(i, 0, 0), new Vec3d(i + 1, 0, 0), new Vec3d(i + 0.5, 0, 1)));
Drawing faceDraw = tris.GetFaceDrawing(); Drawing faceDraw = tris.GetFaceDrawing();
Drawing linesDraw = tris.GetLineDrawing(); Drawing linesDraw = tris.ToLineDrawing();
DemoUtil.RunApplication("DrawTri3d", DemoUtil.RunApplication("DrawTri3d",
new DispList(new RgbTreat(0, 0, 1), linesDraw new DispList(new RgbTreat(0, 0, 1), linesDraw

View File

@ -1,4 +1,4 @@
using Hi.Geom; using Hi.Geom;
using Hi.Disp; using Hi.Disp;
using Hi.Native; using Hi.Native;
@ -31,12 +31,12 @@ namespace Sample.Disp
dst.Expand(new Vec3d(1, 1, 1)); dst.Expand(new Vec3d(1, 1, 1));
} }
/// <inheritdoc/> /// <inheritdoc/>
public override void OnMouseEnter(ui_event_type e, panel_state_t state) public override void OnMouseEnter(ui_event_type e, DispEngine dispEngine)
{ {
isMouseOver = true; isMouseOver = true;
} }
/// <inheritdoc/> /// <inheritdoc/>
public override void OnMouseLeave(ui_event_type e, panel_state_t state) public override void OnMouseLeave(ui_event_type e, DispEngine dispEngine)
{ {
isMouseOver = false; isMouseOver = false;
} }