Table of Contents

Class Box3dDispUtil

Namespace
Hi.Disp
Assembly
HiDisp.dll

Utility and Extension of box3d_t.

public static class Box3dDispUtil
Inheritance
Box3dDispUtil
Inherited Members

Methods

Display(box3d_t, Bind)

public static void Display(this box3d_t src, Bind bind)

Parameters

src box3d_t

src

bind Bind

bind

DisplayFace(box3d_t, Bind)

Display faces of the src.

public static void DisplayFace(this box3d_t src, Bind bind)

Parameters

src box3d_t

src

bind Bind

bind

DisplayLine(box3d_t, Bind)

Display edges of the src.

public static void DisplayLine(this box3d_t src, Bind bind)

Parameters

src box3d_t

src

bind Bind

bind

ExpandToBox3d(nint, BoxableExpandToBox3dDel, ref box3d_t)

Expands a destination box3d_t to include the bounds of a native boxable object.

public static void ExpandToBox3d(nint boxablePtr, Box3dDispUtil.BoxableExpandToBox3dDel boxableExpandToBox3dDel, ref box3d_t dst)

Parameters

boxablePtr nint

Pointer to the boxable object.

boxableExpandToBox3dDel Box3dDispUtil.BoxableExpandToBox3dDel

Delegate to expand the boxable to a box3d_t.

dst box3d_t

The destination box3d_t to expand.

GetBox(nint, BoxableExpandToBox3dDel)

Gets a box3d_t from a native boxable pointer using the provided delegate.

public static box3d_t GetBox(nint boxablePtr, Box3dDispUtil.BoxableExpandToBox3dDel boxableExpandToBox3dDel)

Parameters

boxablePtr nint

Pointer to the boxable object.

boxableExpandToBox3dDel Box3dDispUtil.BoxableExpandToBox3dDel

Delegate to expand the boxable to a box3d_t.

Returns

box3d_t

A box3d_t representing the bounds of the boxable object.

ToDraw(box3d_t)

Equivalent to ToDraw_Face(box3d_t)

public static Drawing ToDraw(this box3d_t src)

Parameters

src box3d_t

src

Returns

Drawing

Drawing

ToDraw_Face(box3d_t)

To Face Drawing.

public static Drawing ToDraw_Face(this box3d_t src)

Parameters

src box3d_t

src

Returns

Drawing

Face Drawing

ToDraw_Line(box3d_t)

To Line Drawing.

public static Drawing ToDraw_Line(this box3d_t src)

Parameters

src box3d_t

src

Returns

Drawing

Line Drawing

ToFaceDraw(IEnumerable<box3d_t>)

Get faces Drawing.

public static Drawing ToFaceDraw(this IEnumerable<box3d_t> boxs)

Parameters

boxs IEnumerable<box3d_t>

boxes

Returns

Drawing

a draw with face

ToLineBuf(box3d_t, double[], ref int)

Put the edges' data to dst, totally 72 double. The data is used according to GL_LINES.

public static int ToLineBuf(this box3d_t src, double[] dst, ref int p)

Parameters

src box3d_t

src

dst double[]

dstination buffer

p int

current position of the buffer

Returns

int

The p increment: 72

ToLineDraw(IEnumerable<box3d_t>)

Get the edges Drawing of boxs.

public static Drawing ToLineDraw(this IEnumerable<box3d_t> boxs)

Parameters

boxs IEnumerable<box3d_t>

boxs

Returns

Drawing

The Drawing

ToLineDraw(IEnumerable<box3d_t>, bool)

Get the edges Drawing of boxs; a rebuildable one when rebuildable is true (IsRebuildable), which its owner makes again from the boxes it keeps once the drawing went stale (IsStale).

public static Drawing ToLineDraw(this IEnumerable<box3d_t> boxs, bool rebuildable)

Parameters

boxs IEnumerable<box3d_t>

boxs

rebuildable bool

whether to make the drawing rebuildable

Returns

Drawing

The Drawing