add cubetree defect display.
This commit is contained in:
parent
d18d936868
commit
6931bbdc97
@ -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
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user